File indexing completed on 2025-01-18 09:29:10
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_ASIO_IS_READ_BUFFERED_HPP
0012 #define BOOST_ASIO_IS_READ_BUFFERED_HPP
0013
0014 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
0015 # pragma once
0016 #endif
0017
0018 #include <boost/asio/detail/config.hpp>
0019 #include <boost/asio/buffered_read_stream_fwd.hpp>
0020 #include <boost/asio/buffered_stream_fwd.hpp>
0021
0022 #include <boost/asio/detail/push_options.hpp>
0023
0024 namespace boost {
0025 namespace asio {
0026
0027 namespace detail {
0028
0029 template <typename Stream>
0030 char is_read_buffered_helper(buffered_stream<Stream>* s);
0031
0032 template <typename Stream>
0033 char is_read_buffered_helper(buffered_read_stream<Stream>* s);
0034
0035 struct is_read_buffered_big_type { char data[10]; };
0036 is_read_buffered_big_type is_read_buffered_helper(...);
0037
0038 }
0039
0040
0041
0042 template <typename Stream>
0043 class is_read_buffered
0044 {
0045 public:
0046 #if defined(GENERATING_DOCUMENTATION)
0047
0048
0049 static const bool value;
0050 #else
0051 BOOST_ASIO_STATIC_CONSTANT(bool,
0052 value = sizeof(detail::is_read_buffered_helper((Stream*)0)) == 1);
0053 #endif
0054 };
0055
0056 }
0057 }
0058
0059 #include <boost/asio/detail/pop_options.hpp>
0060
0061 #endif