|
605 | 605 | template<> struct char_traits<wchar_t>;
|
606 | 606 |
|
607 | 607 | // \ref{basic.string}, \tcode{basic_string}
|
608 |
| - template<class charT, class traits = char_traits<charT>, |
609 |
| - class Allocator = allocator<charT>> |
610 |
| - class basic_string; |
| 608 | + template<class charT, class traits = char_traits<charT>, class Allocator = allocator<charT>> |
| 609 | + class basic_string; |
611 | 610 |
|
612 | 611 | template<class charT, class traits, class Allocator>
|
613 | 612 | basic_string<charT, traits, Allocator>
|
|
797 | 796 |
|
798 | 797 | namespace pmr {
|
799 | 798 | template <class charT, class traits = char_traits<charT>>
|
800 |
| - using basic_string = |
801 |
| - std::basic_string<charT, traits, polymorphic_allocator<charT>>; |
| 799 | + using basic_string = std::basic_string<charT, traits, polymorphic_allocator<charT>>; |
802 | 800 |
|
803 | 801 | using string = basic_string<char>;
|
804 | 802 | using u16string = basic_string<char16_t>;
|
|
1232 | 1230 | \begin{libefftabvalue}
|
1233 | 1231 | {\tcode{basic_string(const basic_string\&)} effects}
|
1234 | 1232 | {tab:strings.ctr.cpy}
|
1235 |
| -\tcode{data()} & |
1236 |
| -points at the first element of an allocated copy of the array |
1237 |
| -whose first element is pointed at by \tcode{str.data()} \\ |
1238 |
| -\tcode{size()} & \tcode{str.size()} \\ |
1239 |
| -\tcode{capacity()} & a value at least as large as \tcode{size()} \\ |
| 1233 | +\tcode{data()} & points at the first element of an allocated |
| 1234 | + copy of the array whose first element is |
| 1235 | + pointed at by \tcode{str.data()} \\ |
| 1236 | +\tcode{size()} & \tcode{str.size()} \\ |
| 1237 | +\tcode{capacity()} & a value at least as large as \tcode{size()} \\ |
1240 | 1238 | \end{libefftabvalue}
|
1241 | 1239 | \end{itemdescr}
|
1242 | 1240 |
|
1243 | 1241 | \indexlibrary{\idxcode{basic_string}!constructor}%
|
1244 | 1242 | \begin{itemdecl}
|
1245 |
| -basic_string(const basic_string& str, size_type pos, |
1246 |
| - const Allocator& a = Allocator()); |
| 1243 | +basic_string(const basic_string& str, size_type pos, const Allocator& a = Allocator()); |
1247 | 1244 | \end{itemdecl}
|
1248 | 1245 |
|
1249 | 1246 | \begin{itemdescr}
|
|
1295 | 1292 | \indexlibrary{\idxcode{basic_string}!constructor}%
|
1296 | 1293 | \begin{itemdecl}
|
1297 | 1294 | template<class T>
|
1298 |
| - basic_string(const T& t, size_type pos, size_type n, |
1299 |
| - const Allocator& a = Allocator()); |
| 1295 | + basic_string(const T& t, size_type pos, size_type n, const Allocator& a = Allocator()); |
1300 | 1296 | \end{itemdecl}
|
1301 | 1297 |
|
1302 | 1298 | \begin{itemdescr}
|
|
1316 | 1312 |
|
1317 | 1313 | \indexlibrary{\idxcode{basic_string}!constructor}%
|
1318 | 1314 | \begin{itemdecl}
|
1319 |
| -explicit basic_string(basic_string_view<charT, traits> sv, |
1320 |
| - const Allocator& a = Allocator()); |
| 1315 | +explicit basic_string(basic_string_view<charT, traits> sv, const Allocator& a = Allocator()); |
1321 | 1316 | \end{itemdecl}
|
1322 | 1317 |
|
1323 | 1318 | \begin{itemdescr}
|
|
1327 | 1322 |
|
1328 | 1323 | \indexlibrary{\idxcode{basic_string}!constructor}%
|
1329 | 1324 | \begin{itemdecl}
|
1330 |
| -basic_string(const charT* s, size_type n, |
1331 |
| - const Allocator& a = Allocator()); |
| 1325 | +basic_string(const charT* s, size_type n, const Allocator& a = Allocator()); |
1332 | 1326 | \end{itemdecl}
|
1333 | 1327 |
|
1334 | 1328 | \begin{itemdescr}
|
|
0 commit comments