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
8
9namespace etl {
10
12template <typename F, typename... Args>
13concept 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
Definition invocable.hpp:13
Definition adjacent_find.hpp:8
constexpr auto invoke(F &&f, Args &&... args) -> invoke_result_t< F, Args... >
Definition invoke.hpp:45
constexpr auto forward(remove_reference_t< T > &param) noexcept -> T &&
Forwards lvalues as either lvalues or as rvalues, depending on T. When t is a forwarding reference (a...
Definition forward.hpp:18