|
rippled
|
Lightweight wrapper to tag static string. More...
#include <json_value.h>
Public Member Functions | |
| constexpr | StaticString (const char *czstring) |
| constexpr | operator const char * () const |
| constexpr const char * | c_str () const |
Private Attributes | |
| const char * | str_ |
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:
Definition at line 61 of file json_value.h.
|
explicitconstexpr |
Definition at line 64 of file json_value.h.
|
constexpr |
Definition at line 69 of file json_value.h.
|
constexpr |
Definition at line 75 of file json_value.h.
|
private |
Definition at line 81 of file json_value.h.