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
11template <bool B>
12using bool_constant = integral_constant<bool, B>;
13
14using true_type = bool_constant<true>;
15using false_type = bool_constant<false>;
16
17} // namespace etl
18
19#endif // TETL_TYPE_TRAITS_BOOL_CONSTANT_HPP
Definition adjacent_find.hpp:9
Definition integral_constant.hpp:10