You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/wrappers.md
+35
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ Glaze provides a number of wrappers that indicate at compile time how a value sh
5
5
## Available Wrappers
6
6
7
7
```c++
8
+
glz::append_arrays<&T::x> // When reading into an array that is appendable, the new data will be appended rather than overwrite
8
9
glz::bools_as_numbers<&T::x> // Read and write booleans as numbers
9
10
glz::quoted_num<&T::x> // Read and write numbers as strings
10
11
glz::quoted<&T::x> // Read a value as a string and unescape, to avoid the user having to parse twice
@@ -29,6 +30,40 @@ glz::manage<&T::x, &T::read_x, &T::write_x> // Calls read_x() after reading x an
29
30
30
31
`glz::opts` is the compile time options struct passed to most of Glaze functions to configure read/write behavior. Often wrappers are associated with compile time options and can also be set via `glz::opts`. For example, the `glz::quoted_num` wrapper is associated with the `quoted_num` boolean in `glz::opts`.
31
32
33
+
## append_arrays
34
+
35
+
When reading into an array that is appendable, the new data will be appended rather than overwrite
0 commit comments