Lightweight wrapper to tag static string.
More...
#include <json/value.h>
Lightweight wrapper to tag static string.
Value constructor and objectValue member assignment takes advantage of the StaticString and avoid the cost of string duplication when storing the string or the member name.
Example of usage:
object[code] = 1234;
StaticString(const char *czstring)
Definition: value.h:149
Represents a JSON value.
Definition: value.h:193
◆ StaticString()
Json::StaticString::StaticString |
( |
const char * |
czstring | ) |
|
|
inlineexplicit |
◆ c_str()
const char* Json::StaticString::c_str |
( |
| ) |
const |
|
inline |
◆ operator const char *()
Json::StaticString::operator const char * |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: