libcopp
2.3.1
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Functions
_
a
c
d
f
g
h
i
m
o
p
r
s
t
w
y
Variables
_
a
b
c
d
e
f
g
h
l
m
o
p
r
s
t
u
w
x
Typedefs
Enumerations
Enumerator
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Typedefs
_
a
b
c
d
e
f
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerations
Enumerator
e
l
s
u
Related Symbols
_
d
e
i
l
o
r
s
w
Files
File List
Globals
All
_
b
c
e
g
j
l
m
o
p
r
s
t
u
w
Functions
b
c
g
j
m
o
p
r
s
t
Variables
b
c
g
m
s
t
Typedefs
Enumerations
Enumerator
c
e
Macros
_
c
l
m
s
t
u
w
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
test
std
ref.h
Go to the documentation of this file.
1
14
#ifndef STD_REF_H
15
#define STD_REF_H
16
17
#pragma once
18
19
// ============================================================
20
// 公共包含部分
21
// 自动导入引用包装库
22
// ============================================================
23
35
// VC9.0 SP1以上分支判断
36
#if defined(_MSC_VER) && ((_MSC_VER == 1500 && defined(_HAS_TR1)) || _MSC_VER > 1500)
37
// 采用VC std::tr1库
38
# include <functional>
39
#elif defined(__clang__) && __clang_major__ >= 3
40
// 采用Clang c++11库
41
# include <functional>
42
#elif defined(__GNUC__) && __GNUC__ >= 4
43
// 采用G++ std::tr1库
44
# if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
45
# include <functional>
46
# else
47
# include <tr1/functional>
48
namespace
std
{
49
using
tr1::cref;
50
using
tr1::ref;
51
using
tr1::reference_wrapper;
52
}
// namespace std
53
# endif
54
#else
55
// 采用boost tr1库
56
# include <boost/tr1/functional.hpp>
57
namespace
std
{
58
using
tr1::cref;
59
using
tr1::ref;
60
using
tr1::reference_wrapper;
61
}
// namespace std
62
#endif
63
64
#endif
std
STL namespace.
Generated by
1.9.8