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 ;
(Bibliotheksgrundlagen TS)
template < class Allocator >
explicit operator basic_string < CharT, Traits, Allocator > ( ) const ;
(Bibliotheksgrundlagen TS)

Erstellt einen basic_string mit einer Kopie des Inhalts der aktuellen Ansicht.

Inhaltsverzeichnis

Template-Parameter

Allocator - Allocator Typ, der zur Allokation von internem Speicher verwendet wird

Parameter

a - Allocator-Instanz, die für die Zuweisung der neuen Zeichenkette verwendet werden soll

Rückgabewert

Ein basic_string , der eine Kopie der Zeichen der aktuellen Ansicht enthält.

Komplexität

Linear in size()