Lightweight wrapper to tag static string. More...
#include <json.h>
Public Member Functions | |
const char * | c_str () const |
operator const char * () const | |
StaticString (const char *czstring) | |
Private Attributes | |
const char * | str_ |
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:
|
inlineexplicit |