Realistic 3D camera system
3D camera system components
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
asio-1.10.6
include
asio
detail
keyword_tss_ptr.hpp
Go to the documentation of this file.
1
//
2
// detail/keyword_tss_ptr.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_KEYWORD_TSS_PTR_HPP
12
#define ASIO_DETAIL_KEYWORD_TSS_PTR_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_THREAD_KEYWORD_EXTENSION)
21
22
#include "
asio/detail/noncopyable.hpp
"
23
24
#include "
asio/detail/push_options.hpp
"
25
26
namespace
asio
{
27
namespace
detail {
28
29
template
<
typename
T>
30
class
keyword_tss_ptr
31
:
private
noncopyable
32
{
33
public
:
34
// Constructor.
35
keyword_tss_ptr()
36
{
37
}
38
39
// Destructor.
40
~keyword_tss_ptr()
41
{
42
}
43
44
// Get the value.
45
operator
T*()
const
46
{
47
return
value_;
48
}
49
50
// Set the value.
51
void
operator=(T* value)
52
{
53
value_ = value;
54
}
55
56
private
:
57
static
ASIO_THREAD_KEYWORD
T* value_;
58
};
59
60
template
<
typename
T>
61
ASIO_THREAD_KEYWORD
T* keyword_tss_ptr<T>::value_;
62
63
}
// namespace detail
64
}
// namespace asio
65
66
#include "
asio/detail/pop_options.hpp
"
67
68
#endif // defined(ASIO_HAS_THREAD_KEYWORD_EXTENSION)
69
70
#endif // ASIO_DETAIL_KEYWORD_TSS_PTR_HPP
ASIO_THREAD_KEYWORD
#define ASIO_THREAD_KEYWORD
Definition:
config.hpp:961
config.hpp
push_options.hpp
pop_options.hpp
noncopyable.hpp
asio
Definition:
async_result.hpp:23
Generated by
1.8.11