Realistic 3D camera system
3D camera system components
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
asio-1.10.6
include
asio
is_write_buffered.hpp
Go to the documentation of this file.
1
//
2
// is_write_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_WRITE_BUFFERED_HPP
12
#define ASIO_IS_WRITE_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
"
19
#include "
asio/buffered_stream_fwd.hpp
"
20
#include "
asio/buffered_write_stream_fwd.hpp
"
21
22
#include "
asio/detail/push_options.hpp
"
23
24
namespace
asio
{
25
26
namespace
detail {
27
28
template
<
typename
Stream>
29
char
is_write_buffered_helper
(buffered_stream<Stream>*
s
);
30
31
template
<
typename
Stream>
32
char
is_write_buffered_helper
(buffered_write_stream<Stream>*
s
);
33
34
struct
is_write_buffered_big_type
{
char
data
[10]; };
35
is_write_buffered_big_type
is_write_buffered_helper
(...);
36
37
}
// namespace detail
38
41
template
<
typename
Stream>
42
class
is_write_buffered
43
{
44
public
:
45
#if defined(GENERATING_DOCUMENTATION)
46
static
const
bool
value;
49
#else
50
ASIO_STATIC_CONSTANT
(
bool
,
51
value =
sizeof
(
detail::is_write_buffered_helper
((Stream*)0)) == 1);
52
#endif
53
};
54
55
}
// namespace asio
56
57
#include "
asio/detail/pop_options.hpp
"
58
59
#endif // ASIO_IS_WRITE_BUFFERED_HPP
asio::s
SocketService & s
Definition:
connect.hpp:521
asio::is_write_buffered
Definition:
is_write_buffered.hpp:42
asio::detail::is_write_buffered_helper
is_write_buffered_big_type is_write_buffered_helper(...)
asio::detail::is_write_buffered_big_type::data
char data[10]
Definition:
is_write_buffered.hpp:34
asio::detail::is_write_buffered_big_type
Definition:
is_write_buffered.hpp:34
config.hpp
push_options.hpp
pop_options.hpp
buffered_stream_fwd.hpp
asio
Definition:
async_result.hpp:23
ASIO_STATIC_CONSTANT
#define ASIO_STATIC_CONSTANT(type, assignment)
Definition:
config.hpp:856
buffered_write_stream_fwd.hpp
Generated by
1.8.11