|
1150 | 1150 | -> basic_string<typename iterator_traits<InputIterator>::value_type,
|
1151 | 1151 | char_traits<typename iterator_traits<InputIterator>::value_type>,
|
1152 | 1152 | Allocator>;
|
| 1153 | + |
| 1154 | + template<class charT, |
| 1155 | + class traits, |
| 1156 | + class Allocator = allocator<charT>> |
| 1157 | + explicit basic_string(basic_string_view<charT, traits>, const Allocator& = Allocator()) |
| 1158 | + -> basic_string<charT, traits, Allocator>; |
| 1159 | + |
| 1160 | + template<class charT, |
| 1161 | + class traits, |
| 1162 | + class Allocator = allocator<charT>> |
| 1163 | + basic_string(basic_string_view<charT, traits>, |
| 1164 | + typename @\seebelow@::size_type, typename @\seebelow@::size_type, |
| 1165 | + const Allocator& = Allocator()) |
| 1166 | + -> basic_string<charT, traits, Allocator>; |
1153 | 1167 | }
|
1154 | 1168 | \end{codeblock}
|
1155 | 1169 |
|
| 1170 | +\pnum |
| 1171 | +A \tcode{size_type} parameter type in |
| 1172 | +a \tcode{basic_string} deduction guide |
| 1173 | +refers to the \tcode{size_type} member type of |
| 1174 | +the type deduced by the deduction guide. |
| 1175 | + |
1156 | 1176 | \rSec3[string.require]{General requirements}
|
1157 | 1177 |
|
1158 | 1178 | \pnum
|
|
1458 | 1478 | or if \tcode{Allocator} is a type that does not qualify as an allocator\iref{container.requirements.general}.
|
1459 | 1479 | \end{itemdescr}
|
1460 | 1480 |
|
| 1481 | +\begin{itemdecl} |
| 1482 | +template<class charT, |
| 1483 | + class traits, |
| 1484 | + class Allocator = allocator<charT>> |
| 1485 | + explicit basic_string(basic_string_view<charT, traits>, const Allocator& = Allocator()) |
| 1486 | + -> basic_string<charT, traits, Allocator>; |
| 1487 | + |
| 1488 | +template<class charT, |
| 1489 | + class traits, |
| 1490 | + class Allocator = allocator<charT>> |
| 1491 | + basic_string(basic_string_view<charT, traits>, |
| 1492 | + typename @\seebelow@::size_type, typename @\seebelow@::size_type, |
| 1493 | + const Allocator& = Allocator()) |
| 1494 | + -> basic_string<charT, traits, Allocator>; |
| 1495 | +\end{itemdecl} |
| 1496 | + |
| 1497 | +\begin{itemdescr} |
| 1498 | +\pnum |
| 1499 | +\remarks Shall not participate in overload resolution if |
| 1500 | +\tcode{Allocator} is a type that does not qualify as |
| 1501 | +an allocator\iref{container.requirements.general}. |
| 1502 | +\end{itemdescr} |
| 1503 | + |
1461 | 1504 | \indexlibrarymember{operator=}{basic_string}%
|
1462 | 1505 | \begin{itemdecl}
|
1463 | 1506 | basic_string& operator=(const basic_string& str);
|
|
0 commit comments