CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
is_indirectly_unary_invocable.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
13
14#include <type_traits>
15
16namespace CeresEngine::traits {
17
20 template<class F, class I, class = void> struct is_indirectly_unary_invocable : std::false_type {};
21
22 template<class F, class I>
25 // clang-format off
26 is_indirectly_readable_v<I> &&
27 std::is_copy_constructible_v<F> &&
28 std::is_invocable_v<F&, iter_value_t<I>&>
29 // clang-format on
30 >> : std::true_type {};
31
34
36 template<class F, class I>
38
39} // namespace CeresEngine::traits
Definition is_indirectly_unary_invocable.hpp:37
Definition Partitioner.hpp:146
bool constexpr is_indirectly_unary_invocable_v
A C++17 type trait equivalent to the C++20 indirectly_unary_invocable concept.
Definition is_indirectly_unary_invocable.hpp:33
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Definition Span.hpp:668
A C++17 type trait equivalent to the C++20 indirectly_unary_invocable concept.
Definition is_indirectly_unary_invocable.hpp:20