@@ -388,7 +388,7 @@ <h1><code>basic_string_view</code> string operations</h1>
388
388
explicit< cxx-footnote > This conversion is explicit to avoid accidental O(N) operations on type mismatches.</ cxx-footnote > operator basic_string<
389
389
charT, traits, Allocator> () const;</ cxx-signature >
390
390
391
- < cxx-effects > Equivalent to < code > basic_string<charT, traits, Allocator> (begin(), end()). </ code > </ cxx-effects >
391
+ < cxx-effects > Equivalent to < code > return basic_string<charT, traits, Allocator> (begin(), end()); </ code > </ cxx-effects >
392
392
< cxx-complexity > O(< code > size()</ code > )</ cxx-complexity >
393
393
< p > < cxx-note > Users who want to control the allocator instance should call < code > to_string(allocator)</ code > .</ cxx-note > </ p >
394
394
</ cxx-function >
@@ -440,29 +440,29 @@ <h1><code>basic_string_view</code> string operations</h1>
440
440
441
441
< cxx-function >
442
442
< cxx-signature > constexpr int compare(size_type pos1, size_type n1, basic_string_view str) const;</ cxx-signature >
443
- < cxx-effects > Equivalent to < code > substr(pos1, n1).compare(str)</ code > . </ cxx-effects >
443
+ < cxx-effects > Equivalent to < code > return substr(pos1, n1).compare(str); </ code > </ cxx-effects >
444
444
</ cxx-function >
445
445
446
446
< cxx-function >
447
447
< cxx-signature > constexpr int compare(size_type pos1, size_type n1, basic_string_view str,
448
448
size_type pos2, size_type n2) const;</ cxx-signature >
449
- < cxx-effects > Equivalent to < code > substr(pos1, n1).compare(str.substr(pos2, n2))</ code > . </ cxx-effects >
449
+ < cxx-effects > Equivalent to < code > return substr(pos1, n1).compare(str.substr(pos2, n2)); </ code > </ cxx-effects >
450
450
</ cxx-function >
451
451
452
452
< cxx-function >
453
453
< cxx-signature > constexpr int compare(const charT* s) const;</ cxx-signature >
454
- < cxx-effects > Equivalent to < code > compare(basic_string_view(s))</ code > . </ cxx-effects >
454
+ < cxx-effects > Equivalent to < code > return compare(basic_string_view(s)); </ code > </ cxx-effects >
455
455
</ cxx-function >
456
456
457
457
< cxx-function >
458
458
< cxx-signature > constexpr int compare(size_type pos1, size_type n1, const charT* s) const;</ cxx-signature >
459
- < cxx-effects > Equivalent to < code > substr(pos1, n1).compare(basic_string_view(s))</ code > . </ cxx-effects >
459
+ < cxx-effects > Equivalent to < code > return substr(pos1, n1).compare(basic_string_view(s)); </ code > </ cxx-effects >
460
460
</ cxx-function >
461
461
462
462
< cxx-function >
463
463
< cxx-signature > constexpr int compare(size_type pos1, size_type n1,
464
464
const charT* s, size_type n2) const;</ cxx-signature >
465
- < cxx-effects > Equivalent to < code > substr(pos1, n1).compare(basic_string_view(s, n2))</ code > . </ cxx-effects >
465
+ < cxx-effects > Equivalent to < code > return substr(pos1, n1).compare(basic_string_view(s, n2)); </ code > </ cxx-effects >
466
466
</ cxx-function >
467
467
468
468
< cxx-section id ="string.view.find ">
@@ -476,15 +476,15 @@ <h1>Searching <code>basic_string_view</code></h1>
476
476
477
477
< p > Each member function of the form</ p >
478
478
< pre > < code > constexpr < var > return-type fx1</ var > (const charT* s, size_type pos);</ code > </ pre >
479
- < p class ="cont "> is equivalent to < code > < var > fx1</ var > (basic_string_view(s), pos)</ code > . </ p >
479
+ < p class ="cont "> is equivalent to < code > return < var > fx1</ var > (basic_string_view(s), pos); </ code > </ p >
480
480
481
481
< p > Each member function of the form</ p >
482
482
< pre > < code > constexpr < var > return-type fx1</ var > (const charT* s, size_type pos, size_type n);</ code > </ pre >
483
- < p class ="cont "> is equivalent to < code > < var > fx1</ var > (basic_string_view(s, n), pos)</ code > . </ p >
483
+ < p class ="cont "> is equivalent to < code > return < var > fx1</ var > (basic_string_view(s, n), pos); </ code > </ p >
484
484
485
485
< p > Each member function of the form</ p >
486
486
< pre > < code > constexpr < var > return-type fx2</ var > (charT c, size_type pos);</ code > </ pre >
487
- < p class ="cont "> is equivalent to < code > < var > fx2</ var > (basic_string_view(&c, 1), pos)</ code > . </ p >
487
+ < p class ="cont "> is equivalent to < code > return < var > fx2</ var > (basic_string_view(&c, 1), pos); </ code > </ p >
488
488
489
489
< cxx-function >
490
490
< cxx-signature > constexpr size_type find(basic_string_view str, size_type pos = 0) const noexcept;</ cxx-signature >
@@ -678,7 +678,7 @@ <h1>Inserters and extractors</h1>
678
678
operator<<(basic_ostream<charT, traits> & os,
679
679
basic_string_view<charT, traits> str);</ cxx-signature >
680
680
681
- < cxx-effects > Equivalent to < code > os << str.to_string()</ code > . </ cxx-effects >
681
+ < cxx-effects > Equivalent to < code > return os << str.to_string(); </ code > </ cxx-effects >
682
682
</ cxx-function >
683
683
</ cxx-section >
684
684
0 commit comments