forked from Alepha/Alepha
Function Composition helpers
This commit is contained in:
@ -214,6 +214,13 @@ namespace Alepha::Hydrogen ::detail:: Concepts_m
|
||||
template< typename T >
|
||||
concept UnaryFunction= Functional< T > and function_traits< T >::args_size == 1;
|
||||
|
||||
template< typename T, typename Signature >
|
||||
concept Function= ConvertibleTo< T, std::function< Signature > >;
|
||||
|
||||
template< typename T, typename ReturnType >
|
||||
concept FunctionReturning= Functional< T >
|
||||
and ConvertibleTo< typename function_traits< T >::return_type, ReturnType >;
|
||||
|
||||
template< typename T >
|
||||
concept StandardLayout= std::is_standard_layout_v< T >;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user