VCCC
2024.05
VisualCamp Common C++ library
negation.hpp
Go to the documentation of this file.
1
#
/*
2
# * Created by YongGyu Lee on 2021/09/03.
3
# */
4
#
5
# ifndef VCCC_TYPE_TRAITS_NEGATION_HPP
6
# define VCCC_TYPE_TRAITS_NEGATION_HPP
7
#
8
# include <type_traits>
9
#
10
# include "
vccc/__type_traits/bool_constant.hpp
"
11
12
namespace
vccc
{
13
18
23
template
<
typename
B>
struct
negation
:
bool_constant
<!bool(B::value)> {};
24
27
28
}
// namespace vccc
29
30
# endif
// VCCC_TYPE_TRAITS_NEGATION_HPP
bool_constant.hpp
vccc::bool_constant
std::integral_constant< bool, v > bool_constant
Definition:
bool_constant.hpp:19
vccc
Definition:
directory.h:12
vccc::negation
Definition:
negation.hpp:23
include
vccc
__type_traits
negation.hpp
Generated by
1.9.1