VCCC  2024.05
VisualCamp Common C++ library
bool_constant.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_BOOL_CONSTANT_HPP
6 # define VCCC_TYPE_TRAITS_BOOL_CONSTANT_HPP
7 #
8 # include <type_traits>
9 
10 namespace vccc {
11 
17 
18 template<bool v>
19 using bool_constant = std::integral_constant<bool, v>;
20 
21 template<typename ...> struct always_false : std::false_type {};
22 template<typename ...> struct always_true : std::true_type {};
23 
26 
27 } // namespace vccc
28 
29 # endif // VCCC_TYPE_TRAITS_BOOL_CONSTANT_HPP
std::integral_constant< bool, v > bool_constant
Definition: bool_constant.hpp:19
Definition: directory.h:12
Definition: bool_constant.hpp:21
Definition: bool_constant.hpp:22