Realistic 3D camera system
3D camera system components
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
asio-1.10.6
include
asio
handler_invoke_hook.hpp
Go to the documentation of this file.
1
//
2
// handler_invoke_hook.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_HANDLER_INVOKE_HOOK_HPP
12
#define ASIO_HANDLER_INVOKE_HOOK_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
#include "
asio/detail/push_options.hpp
"
21
22
namespace
asio
{
23
63
65
template
<
typename
Function>
66
inline
void
asio_handler_invoke
(Function&
function
, ...)
67
{
68
function
();
69
}
70
72
template
<
typename
Function>
73
inline
void
asio_handler_invoke
(
const
Function&
function
, ...)
74
{
75
Function tmp(
function
);
76
tmp();
77
}
78
81
}
// namespace asio
82
83
#include "
asio/detail/pop_options.hpp
"
84
85
#endif // ASIO_HANDLER_INVOKE_HOOK_HPP
config.hpp
push_options.hpp
pop_options.hpp
asio::asio_handler_invoke
void asio_handler_invoke(Function &function,...)
Default handler invocation hook used for non-const function objects.
Definition:
handler_invoke_hook.hpp:66
asio
Definition:
async_result.hpp:23
Generated by
1.8.11