Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-15 08:29:49

0001 //
0002 // ip/impl/address.hpp
0003 // ~~~~~~~~~~~~~~~~~~~
0004 //
0005 // Copyright (c) 2003-2025 Christopher M. Kohlhoff (chris at kohlhoff dot com)
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0008 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009 //
0010 
0011 #ifndef BOOST_ASIO_IP_IMPL_ADDRESS_HPP
0012 #define BOOST_ASIO_IP_IMPL_ADDRESS_HPP
0013 
0014 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
0015 # pragma once
0016 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
0017 
0018 #if !defined(BOOST_ASIO_NO_IOSTREAM)
0019 
0020 #include <boost/asio/detail/push_options.hpp>
0021 
0022 namespace boost {
0023 namespace asio {
0024 namespace ip {
0025 
0026 template <typename Elem, typename Traits>
0027 std::basic_ostream<Elem, Traits>& operator<<(
0028     std::basic_ostream<Elem, Traits>& os, const address& addr)
0029 {
0030   return os << addr.to_string().c_str();
0031 }
0032 
0033 } // namespace ip
0034 } // namespace asio
0035 } // namespace boost
0036 
0037 #include <boost/asio/detail/pop_options.hpp>
0038 
0039 #endif // !defined(BOOST_ASIO_NO_IOSTREAM)
0040 
0041 #endif // BOOST_ASIO_IP_IMPL_ADDRESS_HPP