命名空间
变体
操作

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

来自 cppreference.cn
 
 
实验性
技术规范
文件系统库 (filesystem TS)
库基础 (library fundamentals TS)
库基础 2 (library fundamentals TS v2)
库基础 3 (library fundamentals TS v3)
并行性扩展 (parallelism TS)
并行性扩展 2 (parallelism TS v2)
并发性扩展 (concurrency TS)
并发性扩展 2 (concurrency TS v2)
概念 (concepts TS)
范围 (ranges TS)
反射 (reflection TS)
数学特殊函数 (special functions 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 - Allocator 类型,用于分配内部存储

[编辑] 参数

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

[编辑] 返回值

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

[编辑] 复杂度

size() 成线性关系