json test

Embed: (wiki syntax)

« Back to documentation index

StaticString Class Reference

StaticString Class Reference

Lightweight wrapper to tag static string. More...

#include <value.h>


Detailed Description

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:

 Json::Value aValue( StaticString("some text") );
 Json::Value object;
 static const StaticString code("code");
 object[code] = 1234;

Definition at line 131 of file value.h.