1
0
forked from Alepha/Alepha

Function Composition helpers

This commit is contained in:
2025-09-07 03:44:38 -04:00
parent 4116db0103
commit 00908187bd
7 changed files with 196 additions and 0 deletions

View File

@ -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 >;