VCCC  2024.05
VisualCamp Common C++ library
is_referenceable.hpp
Go to the documentation of this file.
1 //
2 // Created by yonggyulee on 2023/10/27.
3 //
4 
5 #ifndef VCCC_TYPE_TRAITS_IS_REFERENCEABLE_HPP
6 #define VCCC_TYPE_TRAITS_IS_REFERENCEABLE_HPP
7 
8 #include <type_traits>
9 
11 
12 namespace vccc {
13 
16 
17 template<typename T, typename = void>
18 struct is_referencable : std::false_type {};
19 
20 template<typename T>
21 struct is_referencable<T, void_t<T&>> : std::true_type {};
22 
24 
25 } // namespace vccc
26 
27 #endif // VCCC_TYPE_TRAITS_IS_REFERENCEABLE_HPP
void void_t
Definition: void_t.hpp:19
Definition: directory.h:12
Definition: is_referenceable.hpp:18