forked from Alepha/Alepha
Type List concatenation for type-lisp.
This commit is contained in:
15
type_lisp.h
15
type_lisp.h
@ -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
|
||||
|
Reference in New Issue
Block a user