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
The base class used to inject custom functionality into each instance of `basic_json`.
8
+
Examples of such functionality might be metadata, additional member functions (e.g., visitors), or other application-specific code.
9
+
10
+
## Template parameters
11
+
12
+
`CustomBaseClass`
13
+
: the base class to be added to `basic_json`
14
+
15
+
## Notes
16
+
17
+
#### Default type
18
+
19
+
The default value for `CustomBaseClass` is `void`. In this case an [empty base class](https://en.cppreference.com/w/cpp/language/ebo) is used and no additional functionality is injected.
20
+
21
+
#### Limitations
22
+
23
+
The type `CustomBaseClass` has to be a default-constructible class.
24
+
`basic_json` only supports copy/move construction/assignment if `CustomBaseClass` does so as well.
25
+
26
+
## Examples
27
+
28
+
??? example
29
+
30
+
The following code shows how to inject custom data and methods for each node.
0 commit comments