|
678 | 678 |
|
679 | 679 | constexpr basic_string_view substr(size_type pos = 0,
|
680 | 680 | size_type n = npos) const; // freestanding-deleted
|
| 681 | + constexpr basic_string_view subview(size_type pos = 0, |
| 682 | + size_type n = npos) const; // freestanding-deleted |
681 | 683 |
|
682 | 684 | constexpr int compare(basic_string_view s) const noexcept;
|
683 | 685 | constexpr int compare(size_type pos1, size_type n1,
|
|
1200 | 1202 | \end{itemdescr}
|
1201 | 1203 |
|
1202 | 1204 | \indexlibrarymember{substr}{basic_string_view}%
|
| 1205 | +\indexlibrarymember{subview}{basic_string_view}% |
1203 | 1206 | \begin{itemdecl}
|
1204 | 1207 | constexpr basic_string_view substr(size_type pos = 0, size_type n = npos) const;
|
| 1208 | +constexpr basic_string_view subview(size_type pos = 0, size_type n = npos) const; |
1205 | 1209 | \end{itemdecl}
|
1206 | 1210 |
|
1207 | 1211 | \begin{itemdescr}
|
|
2285 | 2289 |
|
2286 | 2290 | constexpr basic_string substr(size_type pos = 0, size_type n = npos) const &;
|
2287 | 2291 | constexpr basic_string substr(size_type pos = 0, size_type n = npos) &&;
|
| 2292 | + constexpr basic_string_view<charT, traits> subview(size_type pos = 0, |
| 2293 | + size_type n = npos) const; |
2288 | 2294 |
|
2289 | 2295 | template<class T>
|
2290 | 2296 | constexpr int compare(const T& t) const noexcept(@\seebelow@);
|
|
4470 | 4476 | Equivalent to: \tcode{return basic_string(std::move(*this), pos, n);}
|
4471 | 4477 | \end{itemdescr}
|
4472 | 4478 |
|
| 4479 | +\indexlibrarymember{subview}{basic_string}% |
| 4480 | +\begin{itemdecl} |
| 4481 | +constexpr basic_string_view<charT, traits> subview(size_type pos = 0, size_type n = npos) const; |
| 4482 | +\end{itemdecl} |
| 4483 | + |
| 4484 | +\begin{itemdescr} |
| 4485 | +\pnum |
| 4486 | +\effects |
| 4487 | +Equivalent to: \tcode{return basic_string_view<charT, traits>(*this).subview(pos, n);} |
| 4488 | +\end{itemdescr} |
| 4489 | + |
4473 | 4490 | \rSec4[string.compare]{\tcode{basic_string::compare}}
|
4474 | 4491 |
|
4475 | 4492 | \indexlibrarymember{compare}{basic_string}%
|
|
0 commit comments