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
10
#include "
vccc/__type_traits/disjunction.hpp
"
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
disjunction.hpp
vccc
Definition:
directory.h:12
vccc::disjunction
Definition:
disjunction.hpp:22
vccc::is_class_or_enum
Definition:
is_class_or_enum.hpp:20
include
vccc
__type_traits
is_class_or_enum.hpp
Generated by
1.9.1