blob: c59970a8136d6025eb1f2a1170aec5cc41627037 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#ifndef BOOST_TT_REMOVE_CV_H_INCLUDED
#define BOOST_TT_REMOVE_CV_H_INCLUDED
#ifndef BOOST_TT_DETAIL_CV_TRAITS_IMPL_H_INCLUDED
#define BOOST_TT_DETAIL_CV_TRAITS_IMPL_H_INCLUDED
// ADAPTED (TAKEN) FROM BOOST
//
// (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes, Howard
// Hinnant & John Maddock 2000.
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
//
// See http://www.boost.org/libs/type_traits for most recent version including documentation.
//
namespace boost {
namespace detail {
// implementation helper:
template <typename T> struct cv_traits_imp {};
template <typename T>
struct cv_traits_imp<T*>
{
typedef T unqualified_type;
};
template <typename T>
struct cv_traits_imp<const T*>
{
typedef T unqualified_type;
};
template <typename T>
struct cv_traits_imp<volatile T*>
{
typedef T unqualified_type;
};
template <typename T>
struct cv_traits_imp<const volatile T*>
{
typedef T unqualified_type;
};
} // namespace detail
template <typename T>
struct remove_cv {
typedef typename detail::cv_traits_imp<T*>::unqualified_type type;
};
} // namespace boost
#endif
#endif
|