VCCC  2024.05
VisualCamp Common C++ library
is_class_or_enum.hpp
Go to the documentation of this file.
1 //
2 // Created by yonggyulee on 2024/02/08.
3 //
4 
5 #ifndef VCCC_TYPE_TRAITS_IS_CLASS_OR_ENUM_HPP
6 #define VCCC_TYPE_TRAITS_IS_CLASS_OR_ENUM_HPP
7 
8 #include <type_traits>
9 
11 
12 namespace vccc {
13 
18 
19 template<class T>
20 struct is_class_or_enum : disjunction<std::is_class<T>, std::is_enum<T>> {};
21 
24 
25 } // namespace vccc
26 
27 #endif // VCCC_TYPE_TRAITS_IS_CLASS_OR_ENUM_HPP
Definition: directory.h:12
Definition: disjunction.hpp:22
Definition: is_class_or_enum.hpp:20