Lightweight wrapper to tag static string. More...
#include <json/value.h>
Public Member Functions | |
StaticString (const char *czstring) | |
operator const char * () const | |
const char * | c_str () const |
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:
|
inlineexplicit |
|
inline |
Definition at line 148 of file value.h.
Referenced by Json::Value::operator[](), and Json::Value::Value().