Difference between revisions of "cpp/string"
(→Hash support: already described in basic_string page) |
m (Text replace - "{{cpp|" to "{{c|") |
||
Line 25: | Line 25: | ||
{{tdcl list header | string}} | {{tdcl list header | string}} | ||
{{tdcl list hitem | Type | Definition}} | {{tdcl list hitem | Type | Definition}} | ||
− | {{tdcl list item | {{tt|string}} | {{ | + | {{tdcl list item | {{tt|string}} | {{c|basic_string<char>}}}} |
− | {{tdcl list item | {{tt|wstring}} | {{ | + | {{tdcl list item | {{tt|wstring}} | {{c|basic_string<wchar_t>}}}} |
− | {{tdcl list item | {{tt|u16string}} | {{ | + | {{tdcl list item | {{tt|u16string}} | {{c|basic_string<char16_t>}} | notes={{mark since c++11}}}} |
− | {{tdcl list item | {{tt|u32string}} | {{ | + | {{tdcl list item | {{tt|u32string}} | {{c|basic_string<char32_t>}} | notes={{mark since c++11}}}} |
{{tdcl list end}} | {{tdcl list end}} | ||
Revision as of 20:48, 19 April 2012
Contents |
Null-terminated byte string management
Null-terminated multibyte string management
Null-terminated wide string management
basic_string
Defined in header <string>
|
||
template< class CharT, |
||
The class basic_string
generalizes the way how sequences of characters are manipulated and stored.
Several specializations of the class basic_string
are provided:
Template:tdcl list begin Template:tdcl list header Template:tdcl list hitem Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list end
char_traits
Strings library provides class template char_traits
, defining types and functions for a character container. The following specializations are defined:
Template:ddcl list begin <tr class="t-dsc-header">
<td><string>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td >template<> class char_traits<std::wstring>;
template<> class char_traits<std::u16string>;
<td class="t-dcl-nopad"> </td>
<td >
(since C++11)
(since C++11) </td>
</tr>
Template:ddcl list end