命名空间
变体
操作

std::experimental::basic_string_view<CharT,Traits>::to_string, std::experimental::basic_string_view<CharT,Traits>::operator basic_string

来自 cppreference.cn
 
 
实验性
技术规范
文件系统库 (文件系统 TS)
库基础 (库基础 TS)
库基础 2 (库基础 TS v2)
库基础 3 (库基础 TS v3)
并行性扩展 (并行性 TS)
并行性扩展 2 (并行性 TS v2)
并发性扩展 (并发性 TS)
并发扩展 2 (并发 TS v2)
概念 (概念 TS)
范围 (范围 TS)
反射 (反射 TS)
数学特殊函数 (特殊函数 TR)
实验性非 TS
模式匹配
线性代数
std::execution
契约
2D 图形
 
 
 
template<class Allocator = allocator<CharT>>

basic_string<CharT, Traits, Allocator>

    to_string(const Allocator& a = Allocator()) const;
(库基础 TS)
template<class Allocator>
explicit operator basic_string<CharT, Traits, Allocator>() const;
(库基础 TS)

创建一个 basic_string,其中包含当前视图内容的副本。

目录

[编辑] 模板参数

Allocator - 分配器 类型,用于分配内部存储

[编辑] 参数

a - 用于为新字符串分配内存的分配器实例

[编辑] 返回值

一个 basic_string,包含当前视图中字符的副本。

[编辑] 复杂度

size() 的线性复杂度