名前空間
変種
操作

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

From cppreference.com
 
 
 
 
 
template<class Allocator = allocator<CharT>>

basic_string<CharT, Traits, Allocator>

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

現在のビューの内容のコピーを持つbasic_stringを作成します。

目次

[編集] テンプレートパラメータ

アロケータ - Allocator 内部ストレージを割り当てるために使用される型

[編集] パラメータ

a - 新しい文字列を割り当てるために使用するアロケータインスタンス

[編集] 戻り値

現在のビューの文字のコピーを含むbasic_string

[編集] 複雑性

size()に対して線形

English 日本語 中文(简体) 中文(繁體)