tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
invocable.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CONCEPTS_INVOCABLE_HPP
4
#define TETL_CONCEPTS_INVOCABLE_HPP
5
6
#include <
etl/_functional/invoke.hpp
>
7
#include <
etl/_utility/forward.hpp
>
8
9
namespace
etl
{
10
12
template
<
typename
F,
typename
... Args>
13
concept
invocable
=
requires
(F&& f, Args&&... args) {
etl::invoke
(
etl::forward<F>
(f),
etl::forward<Args>
(args)...); };
14
15
}
// namespace etl
16
17
#endif
// TETL_CONCEPTS_INVOCABLE_HPP
etl::invocable
Definition
invocable.hpp:13
forward.hpp
invoke.hpp
etl
Definition
adjacent_find.hpp:8
etl::invoke
constexpr auto invoke(F &&f, Args &&... args) -> invoke_result_t< F, Args... >
Definition
invoke.hpp:45
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
invocable.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0