Lightweight wrapper to tag static string.
More...
#include <json.h>
|
| StaticString (const char *czstring) |
|
| operator const char * () const |
|
const char * | c_str () const |
|
| StaticString (const char *czstring) |
|
| operator const char * () const |
|
const char * | c_str () const |
|
Lightweight wrapper to tag static string.
Value constructor and objectValue member assignement takes advantage of the StaticString and avoid the cost of string duplication when storing the string or the member name.
Example of usage:
static const StaticString code("code");
object[code] = 1234;
The documentation for this class was generated from the following file:
- /home/robin_f/Programming/Git/CPP/LoveBrains/include/json/json.h