Realistic 3D camera system
3D camera system components
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
asio-1.10.6
include
asio
wait_traits.hpp
Go to the documentation of this file.
1
//
2
// wait_traits.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_WAIT_TRAITS_HPP
12
#define ASIO_WAIT_TRAITS_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/push_options.hpp
"
19
20
namespace
asio
{
21
23
template
<
typename
Clock>
24
struct
wait_traits
25
{
27
30
static
typename
Clock::duration
to_wait_duration
(
31
const
typename
Clock::duration& d)
32
{
33
return
d;
34
}
35
};
36
37
}
// namespace asio
38
39
#include "
asio/detail/pop_options.hpp
"
40
41
#endif // ASIO_WAIT_TRAITS_HPP
push_options.hpp
pop_options.hpp
asio::wait_traits
Wait traits suitable for use with the basic_waitable_timer class template.
Definition:
wait_traits.hpp:24
asio::wait_traits::to_wait_duration
static Clock::duration to_wait_duration(const typename Clock::duration &d)
Convert a clock duration into a duration used for waiting.
Definition:
wait_traits.hpp:30
asio
Definition:
async_result.hpp:23
Generated by
1.8.11