12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef BOOST_ASIO_IS_WRITE_BUFFERED_HPP
- #define BOOST_ASIO_IS_WRITE_BUFFERED_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif
- #include <boost/asio/detail/push_options.hpp>
- #include <boost/asio/detail/push_options.hpp>
- #include <boost/config.hpp>
- #include <boost/asio/detail/pop_options.hpp>
- #include <boost/asio/buffered_stream_fwd.hpp>
- #include <boost/asio/buffered_write_stream_fwd.hpp>
- namespace boost {
- namespace asio {
- namespace detail {
- template <typename Stream>
- char is_write_buffered_helper(buffered_stream<Stream>* s);
- template <typename Stream>
- char is_write_buffered_helper(buffered_write_stream<Stream>* s);
- struct is_write_buffered_big_type { char data[10]; };
- is_write_buffered_big_type is_write_buffered_helper(...);
- }
- template <typename Stream>
- class is_write_buffered
- {
- public:
- #if defined(GENERATING_DOCUMENTATION)
-
-
- static const bool value;
- #else
- BOOST_STATIC_CONSTANT(bool,
- value = sizeof(detail::is_write_buffered_helper((Stream*)0)) == 1);
- #endif
- };
- }
- }
- #include <boost/asio/detail/pop_options.hpp>
- #endif
|