basic_string的元素是连续存储的,即对于basic_strings,对[0,s.size())中的任意n有&*(s.begin()+n)==&*s.begin()+n,或等价地,指向s[0]的指针能传递给期待指向CharT的空终止(C++11 起)数组首元素指针的函数。 std::basic_string满足知分配器容器(AllocatorAwareContainer)(但不使用定制的construct...
basic_string&erase(size_type index=0, size_type count=npos); (C++20 前) constexprbasic_string&erase(size_type index=0, size_type count=npos); (C++20 起) (2) iterator erase(iterator position); (C++11 前) iterator erase(const_iterator position); ...
std::string_view(C++17)std::basic_string_view<char> std::wstring_view(C++17)std::basic_string_view<wchar_t> std::u8string_view(C++20)std::basic_string_view<char8_t> std::u16string_view(C++17)std::basic_string_view<char16_t> ...
basic_string(InputIt, InputIt, Alloc=Alloc()) ->basic_string<typenamestd::iterator_traits<InputIt>::value_type, std::char_traits< typenamestd::iterator_traits<InputIt>::value_type>, Alloc>; (1)(since C++17) template<classCharT,
t-object (convertible tostd::basic_string_view) to search for Return value Position of the first character of the found substring ornposif no such substring is found. Note that this is an offset from the start of the string, not the end. ...
sbElstd::basic_stringbuf<CharT, Traits, Allocator>usado como el búfer subyacente. (objeto miembro solo de exposición*) Funciones miembro (constructor) construye la corriente de cadena Original: constructs the string stream The text has been machine-translated viaGoogle Translate. ...
> class basic_stringstream; (depuis C++11) Le modèle basic_stringstream classe implémente entrées / sorties sur la mémoire (std::basic_string) flux basés. Elle enveloppe essentiellement une mise en œuvre chaîne brute dispositif (basic_stringbuf) dans une interface de plus haut nive...
> class basic_stringstream; (desde C++11) O modelo de classe implementa basic_stringstream de entrada / saída operações em memória (std::basic_string) fluxos baseados. É, essencialmente, envolve uma aplicação de dispositivo bruto corda (basic_stringbuf) em uma interface de nív...
Original: The class template basic_stringstream implements input/output operations on memory (std::basic_string) based streams. It essentially wraps a raw string device implementation (basic_stringbuf) into a higher-level interface (basic_iostream). The complete interface to unique basic_stringbuf m...
basic_ostringstream(ios_base::openmodemode=ios_base::out); (1) basic_ostringstream(conststd::basic_string<CharT,Traits,Allocator>&str, ios_base::openmodemode=ios_base::out); (2) basic_ostringstream(basic_ostringstream&&other); (3)(dal C++11) ...