|
1240 | 1240 |
|
1241 | 1241 | \indexlibrary{\idxcode{basic_string}!constructor}%
|
1242 | 1242 | \begin{itemdecl}
|
1243 |
| -basic_string(const basic_string& str, size_type pos, const Allocator& a = Allocator()); |
| 1243 | +basic_string(const basic_string& str, size_type pos, |
| 1244 | + const Allocator& a = Allocator()); |
| 1245 | +basic_string(const basic_string& str, size_type pos, size_type n, |
| 1246 | + const Allocator& a = Allocator()); |
1244 | 1247 | \end{itemdecl}
|
1245 | 1248 |
|
1246 | 1249 | \begin{itemdescr}
|
|
1255 | 1258 | Constructs an object of class
|
1256 | 1259 | \tcode{basic_string}
|
1257 | 1260 | and determines the effective length \tcode{rlen} of the initial string
|
1258 |
| -value as \tcode{str.size() - pos}, |
1259 |
| -as indicated in Table~\ref{tab:strings.ctr.2}. |
1260 |
| -\end{itemdescr} |
1261 |
| - |
1262 |
| -\indexlibrary{\idxcode{basic_string}!constructor}% |
1263 |
| -\begin{itemdecl} |
1264 |
| -basic_string(const basic_string& str, size_type pos, size_type n, |
1265 |
| - const Allocator& a = Allocator()); |
1266 |
| -\end{itemdecl} |
1267 |
| - |
1268 |
| -\begin{itemdescr} |
1269 |
| -\pnum |
1270 |
| -\throws |
1271 |
| -\tcode{out_of_range} if \tcode{pos > str.size()}. |
1272 |
| - |
1273 |
| -\pnum |
1274 |
| -\effects |
1275 |
| -Constructs an object of class \tcode{basic_string} |
1276 |
| -and determines the effective length \tcode{rlen} of the initial string |
1277 |
| -value as the smaller of \tcode{n} and \tcode{str.size() - pos}, |
| 1261 | +value as \tcode{str.size() - pos} in the first form and |
| 1262 | +as the smaller of \tcode{str.size() - pos} and \tcode{n} in the second form, |
1278 | 1263 | as indicated in Table~\ref{tab:strings.ctr.2}.
|
1279 | 1264 |
|
1280 | 1265 | \begin{libefftabvalue}
|
|
0 commit comments