tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
bool_constant.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4#ifndef TETL_TYPE_TRAITS_BOOL_CONSTANT_HPP
5#define TETL_TYPE_TRAITS_BOOL_CONSTANT_HPP
6
7#include <etl/_type_traits/integral_constant.hpp>
8
9namespace etl {
10
11/// \ingroup type_traits
12template <bool B>
13using bool_constant = integral_constant<bool, B>;
14
15/// \ingroup type_traits
16using true_type = bool_constant<true>;
17
18/// \ingroup type_traits
19using false_type = bool_constant<false>;
20
21} // namespace etl
22
23#endif // TETL_TYPE_TRAITS_BOOL_CONSTANT_HPP
Definition adjacent_find.hpp:9
Definition integral_constant.hpp:11