X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Fboost%2Fasio%2Fip%2Faddress_v6.hpp;h=62dff45c54554eeb575ca17c38f0e761b1199c8a;hb=92f5a8d42d07f9929ae4fa7e01342fe8d96808a8;hp=8c4ac0a7322af763b36744f1e77e1aa615ef2338;hpb=a0324939f9d0e1905d5df8f57442f09dc70af83d;p=ceph.git diff --git a/ceph/src/boost/boost/asio/ip/address_v6.hpp b/ceph/src/boost/boost/asio/ip/address_v6.hpp index 8c4ac0a73..62dff45c5 100644 --- a/ceph/src/boost/boost/asio/ip/address_v6.hpp +++ b/ceph/src/boost/boost/asio/ip/address_v6.hpp @@ -2,7 +2,7 @@ // ip/address_v6.hpp // ~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -60,33 +60,34 @@ public: #endif /// Default constructor. - BOOST_ASIO_DECL address_v6(); + BOOST_ASIO_DECL address_v6() BOOST_ASIO_NOEXCEPT; /// Construct an address from raw bytes and scope ID. BOOST_ASIO_DECL explicit address_v6(const bytes_type& bytes, unsigned long scope_id = 0); /// Copy constructor. - BOOST_ASIO_DECL address_v6(const address_v6& other); + BOOST_ASIO_DECL address_v6(const address_v6& other) BOOST_ASIO_NOEXCEPT; #if defined(BOOST_ASIO_HAS_MOVE) /// Move constructor. - BOOST_ASIO_DECL address_v6(address_v6&& other); + BOOST_ASIO_DECL address_v6(address_v6&& other) BOOST_ASIO_NOEXCEPT; #endif // defined(BOOST_ASIO_HAS_MOVE) /// Assign from another address. - BOOST_ASIO_DECL address_v6& operator=(const address_v6& other); + BOOST_ASIO_DECL address_v6& operator=( + const address_v6& other) BOOST_ASIO_NOEXCEPT; #if defined(BOOST_ASIO_HAS_MOVE) /// Move-assign from another address. - BOOST_ASIO_DECL address_v6& operator=(address_v6&& other); + BOOST_ASIO_DECL address_v6& operator=(address_v6&& other) BOOST_ASIO_NOEXCEPT; #endif // defined(BOOST_ASIO_HAS_MOVE) /// The scope ID of the address. /** * Returns the scope ID associated with the IPv6 address. */ - unsigned long scope_id() const + unsigned long scope_id() const BOOST_ASIO_NOEXCEPT { return scope_id_; } @@ -95,13 +96,13 @@ public: /** * Modifies the scope ID associated with the IPv6 address. */ - void scope_id(unsigned long id) + void scope_id(unsigned long id) BOOST_ASIO_NOEXCEPT { scope_id_ = id; } /// Get the address in bytes, in network byte order. - BOOST_ASIO_DECL bytes_type to_bytes() const; + BOOST_ASIO_DECL bytes_type to_bytes() const BOOST_ASIO_NOEXCEPT; /// Get the address as a string. BOOST_ASIO_DECL std::string to_string() const; @@ -134,19 +135,19 @@ public: #endif // !defined(BOOST_ASIO_NO_DEPRECATED) /// Determine whether the address is a loopback address. - BOOST_ASIO_DECL bool is_loopback() const; + BOOST_ASIO_DECL bool is_loopback() const BOOST_ASIO_NOEXCEPT; /// Determine whether the address is unspecified. - BOOST_ASIO_DECL bool is_unspecified() const; + BOOST_ASIO_DECL bool is_unspecified() const BOOST_ASIO_NOEXCEPT; /// Determine whether the address is link local. - BOOST_ASIO_DECL bool is_link_local() const; + BOOST_ASIO_DECL bool is_link_local() const BOOST_ASIO_NOEXCEPT; /// Determine whether the address is site local. - BOOST_ASIO_DECL bool is_site_local() const; + BOOST_ASIO_DECL bool is_site_local() const BOOST_ASIO_NOEXCEPT; /// Determine whether the address is a mapped IPv4 address. - BOOST_ASIO_DECL bool is_v4_mapped() const; + BOOST_ASIO_DECL bool is_v4_mapped() const BOOST_ASIO_NOEXCEPT; #if !defined(BOOST_ASIO_NO_DEPRECATED) /// (Deprecated: No replacement.) Determine whether the address is an @@ -155,63 +156,67 @@ public: #endif // !defined(BOOST_ASIO_NO_DEPRECATED) /// Determine whether the address is a multicast address. - BOOST_ASIO_DECL bool is_multicast() const; + BOOST_ASIO_DECL bool is_multicast() const BOOST_ASIO_NOEXCEPT; /// Determine whether the address is a global multicast address. - BOOST_ASIO_DECL bool is_multicast_global() const; + BOOST_ASIO_DECL bool is_multicast_global() const BOOST_ASIO_NOEXCEPT; /// Determine whether the address is a link-local multicast address. - BOOST_ASIO_DECL bool is_multicast_link_local() const; + BOOST_ASIO_DECL bool is_multicast_link_local() const BOOST_ASIO_NOEXCEPT; /// Determine whether the address is a node-local multicast address. - BOOST_ASIO_DECL bool is_multicast_node_local() const; + BOOST_ASIO_DECL bool is_multicast_node_local() const BOOST_ASIO_NOEXCEPT; /// Determine whether the address is a org-local multicast address. - BOOST_ASIO_DECL bool is_multicast_org_local() const; + BOOST_ASIO_DECL bool is_multicast_org_local() const BOOST_ASIO_NOEXCEPT; /// Determine whether the address is a site-local multicast address. - BOOST_ASIO_DECL bool is_multicast_site_local() const; + BOOST_ASIO_DECL bool is_multicast_site_local() const BOOST_ASIO_NOEXCEPT; /// Compare two addresses for equality. - BOOST_ASIO_DECL friend bool operator==( - const address_v6& a1, const address_v6& a2); + BOOST_ASIO_DECL friend bool operator==(const address_v6& a1, + const address_v6& a2) BOOST_ASIO_NOEXCEPT; /// Compare two addresses for inequality. - friend bool operator!=(const address_v6& a1, const address_v6& a2) + friend bool operator!=(const address_v6& a1, + const address_v6& a2) BOOST_ASIO_NOEXCEPT { return !(a1 == a2); } /// Compare addresses for ordering. - BOOST_ASIO_DECL friend bool operator<( - const address_v6& a1, const address_v6& a2); + BOOST_ASIO_DECL friend bool operator<(const address_v6& a1, + const address_v6& a2) BOOST_ASIO_NOEXCEPT; /// Compare addresses for ordering. - friend bool operator>(const address_v6& a1, const address_v6& a2) + friend bool operator>(const address_v6& a1, + const address_v6& a2) BOOST_ASIO_NOEXCEPT { return a2 < a1; } /// Compare addresses for ordering. - friend bool operator<=(const address_v6& a1, const address_v6& a2) + friend bool operator<=(const address_v6& a1, + const address_v6& a2) BOOST_ASIO_NOEXCEPT { return !(a2 < a1); } /// Compare addresses for ordering. - friend bool operator>=(const address_v6& a1, const address_v6& a2) + friend bool operator>=(const address_v6& a1, + const address_v6& a2) BOOST_ASIO_NOEXCEPT { return !(a1 < a2); } /// Obtain an address object that represents any address. - static address_v6 any() + static address_v6 any() BOOST_ASIO_NOEXCEPT { return address_v6(); } /// Obtain an address object that represents the loopback address. - BOOST_ASIO_DECL static address_v6 loopback(); + BOOST_ASIO_DECL static address_v6 loopback() BOOST_ASIO_NOEXCEPT; #if !defined(BOOST_ASIO_NO_DEPRECATED) /// (Deprecated: Use make_address_v6().) Create an IPv4-mapped IPv6 address. @@ -251,8 +256,8 @@ BOOST_ASIO_DECL address_v6 make_address_v6(const char* str); /** * @relates address_v6 */ -BOOST_ASIO_DECL address_v6 make_address_v6( - const char* str, boost::system::error_code& ec); +BOOST_ASIO_DECL address_v6 make_address_v6(const char* str, + boost::system::error_code& ec) BOOST_ASIO_NOEXCEPT; /// Createan IPv6 address from an IP address string. /** @@ -264,8 +269,8 @@ BOOST_ASIO_DECL address_v6 make_address_v6(const std::string& str); /** * @relates address_v6 */ -BOOST_ASIO_DECL address_v6 make_address_v6( - const std::string& str, boost::system::error_code& ec); +BOOST_ASIO_DECL address_v6 make_address_v6(const std::string& str, + boost::system::error_code& ec) BOOST_ASIO_NOEXCEPT; #if defined(BOOST_ASIO_HAS_STRING_VIEW) \ || defined(GENERATING_DOCUMENTATION) @@ -280,8 +285,8 @@ BOOST_ASIO_DECL address_v6 make_address_v6(string_view str); /** * @relates address_v6 */ -BOOST_ASIO_DECL address_v6 make_address_v6( - string_view str, boost::system::error_code& ec); +BOOST_ASIO_DECL address_v6 make_address_v6(string_view str, + boost::system::error_code& ec) BOOST_ASIO_NOEXCEPT; #endif // defined(BOOST_ASIO_HAS_STRING_VIEW) // || defined(GENERATING_DOCUMENTATION)