1
0
forked from Alepha/Alepha

Type List concatenation for type-lisp.

This commit is contained in:
2024-01-27 05:12:07 -05:00
parent 3afe19965d
commit 185ce3cc06

View File

@ -115,6 +115,21 @@ namespace Alepha::Hydrogen ::detail:: type_lisp_m
{
using type= TypeList< Members... >;
};
template< typename Left, typename Right >
struct list_cat;
namespace exports
{
template< typename Left, typename Right >
using list_cat_t= typename list_cat< Left, Right >::type;
}
template< typename ... LeftArgs, typename ... RightArgs >
struct list_cat< TypeList< LeftArgs... >, TypeList< RightArgs... > >
{
using type= TypeList< LeftArgs..., RightArgs... >;
};
}
namespace Alepha::Hydrogen::inline exports::inline type_lisp_m