uce/site/doc/pages/2_DValue_push.txt
2026-06-15 21:42:50 +00:00

20 lines
445 B
Plaintext

:sig
void DValue::push(const DValue& child)
:params
child : value to append/copy
return value : none
:see
0_DValue
2_DValue_pop
2_DValue_set_array
:content
Appends a child under the next numeric key. Empty values become list-shaped. Existing contiguous lists continue at their size; non-list maps use the next unused numeric key and remain non-list.
```cpp
DValue first; first = "first";
DValue list; list.set_array(); list.push(first);
```