Realistic 3D camera system
3D camera system components
is_read_buffered.hpp
Go to the documentation of this file.
1 //
2 // is_read_buffered.hpp
3 // ~~~~~~~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef ASIO_IS_READ_BUFFERED_HPP
12 #define ASIO_IS_READ_BUFFERED_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
21 
23 
24 namespace asio {
25 
26 namespace detail {
27 
28 template <typename Stream>
29 char is_read_buffered_helper(buffered_stream<Stream>* s);
30 
31 template <typename Stream>
32 char is_read_buffered_helper(buffered_read_stream<Stream>* s);
33 
34 struct is_read_buffered_big_type { char data[10]; };
36 
37 } // namespace detail
38 
41 template <typename Stream>
43 {
44 public:
45 #if defined(GENERATING_DOCUMENTATION)
46  static const bool value;
49 #else
51  value = sizeof(detail::is_read_buffered_helper((Stream*)0)) == 1);
52 #endif
53 };
54 
55 } // namespace asio
56 
58 
59 #endif // ASIO_IS_READ_BUFFERED_HPP
SocketService & s
Definition: connect.hpp:521
is_read_buffered_big_type is_read_buffered_helper(...)
#define ASIO_STATIC_CONSTANT(type, assignment)
Definition: config.hpp:856