xo-reader2: parse list types + utest

This commit is contained in:
Roland Conybeare 2026-03-11 14:13:48 -05:00
commit a911125605
2 changed files with 11 additions and 1 deletions

View file

@ -32,9 +32,12 @@ namespace xo {
explicit DListType(obj<AType> elt);
/** create instance using memory from @p mm with metatype @p mtype **/
/** create instance using memory from @p mm with element type @p elt_type **/
static DListType * _make(obj<AAllocator> mm,
obj<AType> elt_type);
/** create fop to new instance using memory from @p mm with element type @p elt_type **/
static obj<AType,DListType> make(obj<AAllocator> mm,
obj<AType> elt_type);
///@}
/** @defgroup xo-scm-listtype-type-facet **/

View file

@ -31,6 +31,13 @@ namespace xo {
return new (mem) DListType(elt_type);
}
obj<AType, DListType>
DListType::make(obj<AAllocator> mm,
obj<AType> elt_type)
{
return obj<AType, DListType>(_make(mm, elt_type));
}
// ----- type facet -----
TypeDescr