Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
third-party
realsense-file
boost
boost
type_traits
copy_cv.hpp
Go to the documentation of this file.
1
#ifndef BOOST_TYPE_TRAITS_COPY_CV_HPP_INCLUDED
2
#define BOOST_TYPE_TRAITS_COPY_CV_HPP_INCLUDED
3
4
//
5
// Copyright 2015 Peter Dimov
6
//
7
// Distributed under the Boost Software License, Version 1.0.
8
// See accompanying file LICENSE_1_0.txt or copy at
9
// http://www.boost.org/LICENSE_1_0.txt
10
//
11
12
#include <
boost/type_traits/is_const.hpp
>
13
#include <
boost/type_traits/is_volatile.hpp
>
14
#include <
boost/type_traits/add_const.hpp
>
15
#include <
boost/type_traits/add_volatile.hpp
>
16
#include <
boost/type_traits/conditional.hpp
>
17
18
namespace
boost
19
{
20
21
template
<
class
T,
class
U>
struct
copy_cv
22
{
23
private
:
24
25
typedef
typename
boost::conditional<boost::is_const<U>::value
,
typename
boost::add_const<T>::type
,
T
>
::type
CT
;
26
27
public
:
28
29
typedef
typename
boost::conditional<boost::is_volatile<U>::value
,
typename
boost::add_volatile<CT>::type
, CT>
::type
type
;
30
};
31
32
#if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
33
34
template
<
class
T,
class
U>
using
copy_cv_t
=
typename
copy_cv<T, U>::type
;
35
36
#endif
37
38
}
// namespace boost
39
40
#endif // #ifndef BOOST_TYPE_TRAITS_COPY_CV_HPP_INCLUDED
boost
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
Definition:
core/addressof.hpp:19
boost::copy_cv
Definition:
copy_cv.hpp:21
add_const.hpp
boost::copy_cv::CT
boost::conditional< boost::is_const< U >::value, typename boost::add_const< T >::type, T >::type CT
Definition:
copy_cv.hpp:25
conditional.hpp
is_volatile.hpp
boost::add_const::type
T const type
Definition:
add_const.hpp:32
boost::conditional
Definition:
conditional.hpp:14
boost::copy_cv_t
typename copy_cv< T, U >::type copy_cv_t
Definition:
copy_cv.hpp:34
boost::type_identity
Definition:
type_identity.hpp:15
t265_stereo.T
T
Definition:
t265_stereo.py:157
is_const.hpp
add_volatile.hpp
boost::copy_cv::type
boost::conditional< boost::is_volatile< U >::value, typename boost::add_volatile< CT >::type, CT >::type type
Definition:
copy_cv.hpp:29
boost::add_volatile::type
T volatile type
Definition:
add_volatile.hpp:30
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:12