Realistic 3D camera system
3D camera system components
handler_cont_helpers.hpp
Go to the documentation of this file.
1 //
2 // detail/handler_cont_helpers.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_DETAIL_HANDLER_CONT_HELPERS_HPP
12 #define ASIO_DETAIL_HANDLER_CONT_HELPERS_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 // Calls to asio_handler_is_continuation must be made from a namespace that
25 // does not contain overloads of this function. This namespace is defined here
26 // for that purpose.
28 
29 template <typename Context>
30 inline bool is_continuation(Context& context)
31 {
32 #if !defined(ASIO_HAS_HANDLER_HOOKS)
33  return false;
34 #else
37  asio::detail::addressof(context));
38 #endif
39 }
40 
41 } // namespace asio_handler_cont_helpers
42 
44 
45 #endif // ASIO_DETAIL_HANDLER_CONT_HELPERS_HPP
bool asio_handler_is_continuation(...)
Default continuation function for handlers.
bool is_continuation(Context &context)
bool asio_handler_is_continuation(binder1< Handler, Arg1 > *this_handler)