tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
boolean_testable.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CONCEPTS_BOOLEAN_TESTABLE_HPP
4
#define TETL_CONCEPTS_BOOLEAN_TESTABLE_HPP
5
6
#include <
etl/_concepts/convertible_to.hpp
>
7
#include <
etl/_utility/forward.hpp
>
8
9
namespace
etl
{
10
11
namespace
detail {
12
template
<
typename
T>
13
concept
boolean_testable_impl = convertible_to<T, bool>;
14
}
// namespace detail
15
19
template
<
typename
T>
20
concept
boolean_testable
= etl::detail::boolean_testable_impl<T> and
requires
(T&& t) {
21
{ not
etl::forward<T>
(t) } -> etl::detail::boolean_testable_impl;
22
};
23
24
}
// namespace etl
25
26
#endif
// TETL_CONCEPTS_BOOLEAN_TESTABLE_HPP
etl::boolean_testable
Definition
boolean_testable.hpp:20
convertible_to.hpp
forward.hpp
etl
Definition
adjacent_find.hpp:8
etl::forward
constexpr auto forward(remove_reference_t< T > ¶m) noexcept -> T &&
Forwards lvalues as either lvalues or as rvalues, depending on T. When t is a forwarding reference (a...
Definition
forward.hpp:18
include
etl
_concepts
boolean_testable.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0