basic_string cppreference.com 创建账户 页面 讨论 变换 查看 编辑 历史 std::basic_string C++ 字符串库 std::basic_string 在标头<string>定义 template< classCharT, classTraits=std::char_traits<CharT>, classAllocator=std::allocator<CharT> >classbasic_string;...
:publicbasic_iostream<CharT, Traits>; 类模板std::basic_stringstream实现基于字符串的流上的输入与输出操作。它相当于存储一个std::basic_string的实例,并在它之上进行输入与输出操作。 该类实际上在低层将一个std::basic_stringbuf的原生字符串设备包装到std::basic_iostream的高层接口中。它提供到独有std::ba...
std::basic_string_view C++ Strings library std::basic_string_view Defined in header<string_view> template< classCharT, classTraits=std::char_traits<CharT> >classbasic_string_view; (since C++17) The class templatebasic_string_viewdescribes an object that can refer to a constant contiguous seque...
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,
>classbasic_stringstream :publicbasic_iostream<CharT, Traits>; La plantilla de clasestd::basic_stringstreamimplementa operaciones de entrada y salida en flujos basados en cadenas. Almacena de manera efectiva un ejempar destd::basic_stringy realiza las operaciones de entrada y salida en ella. ...
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. ...
> 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ível...
> 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 niveau...
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 me...
std::basic_string::reserve void reserve( size_type new_cap = 0 ); 通知std::basic_string对象的计划更改大小,以便它可以适当地管理存储分配。 如果new_cap大于当前capacity(),则分配新存储空间,以及capacity()等于或大于new_cap... 如果new_cap比电流小capacity(),这是一个非绑定收缩请求。