16namespace rpp::constraint
18 template<
typename T,
typename Type>
24 template<
typename T,
typename... Types>
25 concept any_of = (std::same_as<T, Types> || ...);
27 template<
typename T,
typename... Types>
30 template<
typename Type,
typename... Types>
33 template<
typename T,
typename Target>
42 template<
typename T,
typename... Args>
45 T{
static_cast<Args&&
>(args)...}
49 template<
typename Ret,
typename Fn,
typename... Args>
50 concept invocable_r_v = std::invocable<Fn, Args...> && std::same_as<Ret, std::invoke_result_t<Fn, Args...>>;
52 template<
typename Fn,
typename... Args>
59 } -> std::convertible_to<std::size_t>;
Definition constraints.hpp:25
Definition constraints.hpp:28
Definition constraints.hpp:19
Definition constraints.hpp:22
Definition constraints.hpp:56
Definition constraints.hpp:50
Definition constraints.hpp:43
Definition constraints.hpp:53
Definition constraints.hpp:37
Definition constraints.hpp:34
Definition constraints.hpp:31