NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
neforce::tui::string_ref类 参考

字符串可变引用适配器 更多...

#include <ref.hpp>

类 neforce::tui::string_ref 继承关系图:
[图例]

Public 成员函数

 string_ref (const char *s)
 从 C 字符串构造
 string_ref (string_view sv)
 string_view 构造
 string_ref (const wchar_t *ws)
 从宽字符串构造
Public 成员函数 继承自 neforce::tui::ref< string >
 ref ()
 默认构造
stringoperator* ()
 解引用
stringoperator-> ()
 成员访问
refoperator= (string v)
 赋值(同时写入绑定的外部变量)
bool holds_pointer () const noexcept
 检查是否绑定外部指针

详细描述

字符串可变引用适配器

在文件 ref.hpp180 行定义.

构造及析构函数说明

◆ string_ref() [1/3]

neforce::tui::string_ref::string_ref ( const char * s)
inline

从 C 字符串构造

参数
sC 字符串

在文件 ref.hpp188 行定义.

引用了 neforce::tui::ref< string >::ref().

◆ string_ref() [2/3]

neforce::tui::string_ref::string_ref ( string_view sv)
inline

string_view 构造

参数
sv字符串视图

在文件 ref.hpp195 行定义.

引用了 neforce::tui::ref< string >::ref().

◆ string_ref() [3/3]

neforce::tui::string_ref::string_ref ( const wchar_t * ws)
inline

从宽字符串构造

参数
ws宽字符串

在文件 ref.hpp202 行定义.

引用了 neforce::tui::ref< string >::ref() , 以及 neforce::to_string().


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