File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1867
1867
int compare(const sub_match& s) const;
1868
1868
int compare(const string_type& s) const;
1869
1869
int compare(const value_type* s) const;
1870
+
1871
+ void swap(sub_match& s) noexcept(@\seebelow@ );
1870
1872
};
1871
1873
}
1872
1874
\end {codeblock }
1952
1954
\tcode {str().compare(s)}.
1953
1955
\end {itemdescr }
1954
1956
1957
+ \indexlibrarymember {sub_match}{swap}%
1958
+ \begin {itemdecl }
1959
+ void swap(sub_match& s) noexcept(@\seebelow@ );
1960
+ \end {itemdecl }
1961
+
1962
+ \begin {itemdescr }
1963
+ \pnum
1964
+ \expects
1965
+ \tcode {BidirectionalIterator} meets
1966
+ the \oldconcept {Swappable} requirements\iref {swappable.requirements }.
1967
+
1968
+ \pnum
1969
+ \effects
1970
+ Equivalent to:
1971
+ \begin {codeblock }
1972
+ this->pair<BidirectionalIterator, BidirectionalIterator>::swap(s);
1973
+ std::swap(matched, s.matched);
1974
+ \end {codeblock }
1975
+
1976
+ \pnum
1977
+ \remarks
1978
+ The exception specification is equivalent to
1979
+ \tcode {is_nothrow_swappable_v<BidirectionalIter\- ator>}.
1980
+ \end {itemdescr }
1981
+
1955
1982
\rSec 2[re.submatch.op]{Non-member operators}
1956
1983
1957
1984
\pnum
You can’t perform that action at this time.
0 commit comments