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 #
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
std::integral_constant< bool, v > bool_constant
Definition: bool_constant.hpp:19
Definition: directory.h:12
Definition: negation.hpp:23