xo-object2: allow 0-capacity DArrays + utest
This commit is contained in:
parent
3052ecdbcf
commit
11365c95ac
3 changed files with 47 additions and 10 deletions
|
|
@ -60,6 +60,9 @@ namespace xo {
|
|||
|
||||
/** create array containing elements @p args, using memory from @p mm.
|
||||
* Nullptr if space exhausted.
|
||||
*
|
||||
* Use:
|
||||
* Darray * v = DArray::array(mm, e1, e2, e3);
|
||||
**/
|
||||
template <typename... Args>
|
||||
requires (std::same_as<Args, obj<AGCObject>> && ...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue