ゴミ箱
ostream.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // Official repository: https://github.com/boostorg/beast
8 //
9 
10 #ifndef BOOST_BEAST_WRITE_OSTREAM_HPP
11 #define BOOST_BEAST_WRITE_OSTREAM_HPP
12 
13 #include <boost/beast/config.hpp>
16 #include <type_traits>
17 #include <streambuf>
18 #include <utility>
19 
20 namespace boost {
21 namespace beast {
22 
44 template<class ConstBufferSequence>
45 #if BOOST_BEAST_DOXYGEN
46 implementation_defined
47 #else
48 detail::buffers_helper<ConstBufferSequence>
49 #endif
51 {
52  static_assert(is_const_buffer_sequence<
53  ConstBufferSequence>::value,
54  "ConstBufferSequence requirements not met");
57 }
58 
83 template<class DynamicBuffer>
84 #if BOOST_BEAST_DOXYGEN
85 implementation_defined
86 #else
88  DynamicBuffer, char, std::char_traits<char>,
89  detail::basic_streambuf_movable::value>
90 #endif
91 ostream(DynamicBuffer& buffer)
92 {
94  "DynamicBuffer requirements not met");
96  DynamicBuffer, char, std::char_traits<char>,
97  detail::basic_streambuf_movable::value>{buffer};
98 }
99 
100 } // beast
101 } // boost
102 
103 #endif
BufferSequence< boost::asio::const_buffer > ConstBufferSequence
Definition: type_traits.hpp:280
Definition: async_result.hpp:20
detail::ostream_helper< DynamicBuffer, char, std::char_traits< char >, detail::basic_streambuf_movable::value > ostream(DynamicBuffer &buffer)
Definition: ostream.hpp:91
detail::buffers_helper< ConstBufferSequence > buffers(ConstBufferSequence const &b)
Definition: ostream.hpp:50
Definition: ostream.hpp:26
Definition: type_traits.hpp:59
Definition: type_traits.hpp:134
Definition: ostream.hpp:237