summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/asio/include/asio/ip/impl/address_v4.ipp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/asio/include/asio/ip/impl/address_v4.ipp')
-rw-r--r--3rdparty/asio/include/asio/ip/impl/address_v4.ipp26
1 files changed, 13 insertions, 13 deletions
diff --git a/3rdparty/asio/include/asio/ip/impl/address_v4.ipp b/3rdparty/asio/include/asio/ip/impl/address_v4.ipp
index 09439eb16c2..276b399497f 100644
--- a/3rdparty/asio/include/asio/ip/impl/address_v4.ipp
+++ b/3rdparty/asio/include/asio/ip/impl/address_v4.ipp
@@ -2,7 +2,7 @@
// ip/impl/address_v4.ipp
// ~~~~~~~~~~~~~~~~~~~~~~
//
-// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+// Copyright (c) 2003-2021 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)
@@ -57,7 +57,7 @@ address_v4::address_v4(address_v4::uint_type addr)
static_cast<asio::detail::u_long_type>(addr));
}
-address_v4::bytes_type address_v4::to_bytes() const
+address_v4::bytes_type address_v4::to_bytes() const ASIO_NOEXCEPT
{
using namespace std; // For memcpy.
bytes_type bytes;
@@ -69,7 +69,7 @@ address_v4::bytes_type address_v4::to_bytes() const
return bytes;
}
-address_v4::uint_type address_v4::to_uint() const
+address_v4::uint_type address_v4::to_uint() const ASIO_NOEXCEPT
{
return asio::detail::socket_ops::network_to_host_long(addr_.s_addr);
}
@@ -108,12 +108,12 @@ std::string address_v4::to_string(asio::error_code& ec) const
}
#endif // !defined(ASIO_NO_DEPRECATED)
-bool address_v4::is_loopback() const
+bool address_v4::is_loopback() const ASIO_NOEXCEPT
{
return (to_uint() & 0xFF000000) == 0x7F000000;
}
-bool address_v4::is_unspecified() const
+bool address_v4::is_unspecified() const ASIO_NOEXCEPT
{
return to_uint() == 0;
}
@@ -135,7 +135,7 @@ bool address_v4::is_class_c() const
}
#endif // !defined(ASIO_NO_DEPRECATED)
-bool address_v4::is_multicast() const
+bool address_v4::is_multicast() const ASIO_NOEXCEPT
{
return (to_uint() & 0xF0000000) == 0xE0000000;
}
@@ -166,8 +166,8 @@ address_v4 make_address_v4(const char* str)
return addr;
}
-address_v4 make_address_v4(
- const char* str, asio::error_code& ec)
+address_v4 make_address_v4(const char* str,
+ asio::error_code& ec) ASIO_NOEXCEPT
{
address_v4::bytes_type bytes;
if (asio::detail::socket_ops::inet_pton(
@@ -181,13 +181,13 @@ address_v4 make_address_v4(const std::string& str)
return make_address_v4(str.c_str());
}
-address_v4 make_address_v4(
- const std::string& str, asio::error_code& ec)
+address_v4 make_address_v4(const std::string& str,
+ asio::error_code& ec) ASIO_NOEXCEPT
{
return make_address_v4(str.c_str(), ec);
}
-#if defined(ASIO_HAS_STD_STRING_VIEW)
+#if defined(ASIO_HAS_STRING_VIEW)
address_v4 make_address_v4(string_view str)
{
@@ -195,12 +195,12 @@ address_v4 make_address_v4(string_view str)
}
address_v4 make_address_v4(string_view str,
- asio::error_code& ec)
+ asio::error_code& ec) ASIO_NOEXCEPT
{
return make_address_v4(static_cast<std::string>(str), ec);
}
-#endif // defined(ASIO_HAS_STD_STRING_VIEW)
+#endif // defined(ASIO_HAS_STRING_VIEW)
} // namespace ip
} // namespace asio