Namespaces
Variants

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

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

basic_string < CharT, Traits, Allocator >

to_string ( const Allocator & a = Allocator ( ) ) const ;
(라이브러리 fundamentals TS)
template < class Allocator >
explicit operator basic_string < CharT, Traits, Allocator > ( ) const ;
(라이브러리 fundamentals TS)

현재 뷰의 내용을 복사하여 basic_string 을 생성합니다.

목차

템플릿 매개변수

Allocator - Allocator 내부 저장소를 할당하는 데 사용되는 할당자 유형

매개변수

a - 새로운 문자열 할당에 사용할 Allocator 인스턴스

반환값

현재 뷰의 문자들을 복사한 basic_string 을 포함합니다.

복잡도

크기에 대해 선형적으로 size()