VCCC  2024.05
VisualCamp Common C++ library
remove_cvref.hpp
Go to the documentation of this file.
1 # /*
2 # * Created by YongGyu Lee on 2020/12/08.
3 # */
4 #
5 # ifndef VCCC_TYPE_TRAITS_CVREF_HPP
6 # define VCCC_TYPE_TRAITS_CVREF_HPP
7 #
8 # include <type_traits>
9 
10 namespace vccc {
11 
17 
18 template<typename T>
19 struct remove_cvref {
20  using type = std::remove_cv_t<std::remove_reference_t<T>>;
21 };
22 
23 template<typename T>
25 
28 
29 } // namespace vccc
30 
31 # endif // VCCC_TYPE_TRAITS_CVREF_HPP
typename remove_cvref< T >::type remove_cvref_t
Definition: remove_cvref.hpp:24
Definition: directory.h:12
Definition: remove_cvref.hpp:19
std::remove_cv_t< std::remove_reference_t< T > > type
Definition: remove_cvref.hpp:20