Realistic 3D camera system
3D camera system components
placeholders.hpp
Go to the documentation of this file.
1 //
2 // placeholders.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_PLACEHOLDERS_HPP
12 #define ASIO_PLACEHOLDERS_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 
20 #if defined(ASIO_HAS_BOOST_BIND)
21 # include <boost/bind/arg.hpp>
22 #endif // defined(ASIO_HAS_BOOST_BIND)
23 
25 
26 namespace asio {
27 namespace placeholders {
28 
29 #if defined(GENERATING_DOCUMENTATION)
30 
33 unspecified error;
34 
39 unspecified bytes_transferred;
40 
44 unspecified iterator;
45 
49 unspecified signal_number;
50 
51 #elif defined(ASIO_HAS_BOOST_BIND)
52 # if defined(__BORLANDC__) || defined(__GNUC__)
53 
54 inline boost::arg<1> error()
55 {
56  return boost::arg<1>();
57 }
58 
59 inline boost::arg<2> bytes_transferred()
60 {
61  return boost::arg<2>();
62 }
63 
64 inline boost::arg<2> iterator()
65 {
66  return boost::arg<2>();
67 }
68 
69 inline boost::arg<2> signal_number()
70 {
71  return boost::arg<2>();
72 }
73 
74 # else
75 
76 namespace detail
77 {
78  template <int Number>
79  struct placeholder
80  {
81  static boost::arg<Number>& get()
82  {
83  static boost::arg<Number> result;
84  return result;
85  }
86  };
87 }
88 
89 # if defined(ASIO_MSVC) && (ASIO_MSVC < 1400)
90 
91 static boost::arg<1>& error
93 static boost::arg<2>& bytes_transferred
95 static boost::arg<2>& iterator
97 static boost::arg<2>& signal_number
99 
100 # else
101 
102 namespace
103 {
104  boost::arg<1>& error
106  boost::arg<2>& bytes_transferred
108  boost::arg<2>& iterator
110  boost::arg<2>& signal_number
112 } // namespace
113 
114 # endif
115 # endif
116 #endif
117 
118 } // namespace placeholders
119 } // namespace asio
120 
122 
123 #endif // ASIO_PLACEHOLDERS_HPP
detail::read_until_match_op< AsyncReadStream, Allocator, MatchCondition, ASIO_HANDLER_TYPE(ReadHandler, void(asio::error_code, std::size_t))>(s, b, match_condition, init.handler)(asio return init result get()