tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
predicate.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2023 Tobias Hienzsch
3
4#ifndef TETL_CONCEPTS_PREDICATE_HPP
5#define TETL_CONCEPTS_PREDICATE_HPP
6
7#include <etl/_concepts/boolean_testable.hpp>
8#include <etl/_concepts/regular_invocable.hpp>
9#include <etl/_type_traits/invoke_result.hpp>
10
11namespace etl {
12
13/// \ingroup concepts
14template <typename F, typename... Args>
15concept predicate = regular_invocable<F, Args...> and boolean_testable<invoke_result_t<F, Args...>>;
16
17} // namespace etl
18
19#endif // TETL_CONCEPTS_PREDICATE_HPP
Definition adjacent_find.hpp:9