NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_cpp_wrapper_util::Json::StaticString类 参考

Lightweight wrapper to tag static string. 更多...

#include <value.h>

Public 成员函数

 StaticString (const char *czstring)
 
 operator const char * () const
 
const char * c_str () const
 

Private 属性

const char * c_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:

static const StaticString code("code");
object[code] = 1234;
Lightweight wrapper to tag static string.
Definition: value.h:149
Represents a JSON value.
Definition: value.h:196

构造及析构函数说明

◆ StaticString()

nim_cpp_wrapper_util::Json::StaticString::StaticString ( const char *  czstring)
inlineexplicit

成员函数说明

◆ c_str()

const char * nim_cpp_wrapper_util::Json::StaticString::c_str ( ) const
inline

◆ operator const char *()

nim_cpp_wrapper_util::Json::StaticString::operator const char * ( ) const
inline

类成员变量说明

◆ c_str_

const char* nim_cpp_wrapper_util::Json::StaticString::c_str_
private

该类的文档由以下文件生成: