From Jason Turner

[string.cmp]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpe9rlif_u/{from.md → to.md} +25 -0
tmp/tmpe9rlif_u/{from.md → to.md} RENAMED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Non-member comparison functions <a id="string.cmp">[[string.cmp]]</a>
2
+
3
+ ``` cpp
4
+ template<class charT, class traits, class Allocator>
5
+ constexpr bool
6
+ operator==(const basic_string<charT, traits, Allocator>& lhs,
7
+ const basic_string<charT, traits, Allocator>& rhs) noexcept;
8
+ template<class charT, class traits, class Allocator>
9
+ constexpr bool operator==(const basic_string<charT, traits, Allocator>& lhs,
10
+ const charT* rhs);
11
+
12
+ template<class charT, class traits, class Allocator>
13
+ constexpr see below operator<=>(const basic_string<charT, traits, Allocator>& lhs,
14
+ \itcorr const basic_string<charT, traits, Allocator>& rhs) noexcept;
15
+ template<class charT, class traits, class Allocator>
16
+ constexpr see below operator<=>(const basic_string<charT, traits, Allocator>& lhs,
17
+ \itcorr const charT* rhs);
18
+ ```
19
+
20
+ *Effects:* Let *`op`* be the operator. Equivalent to:
21
+
22
+ ``` cpp
23
+ return basic_string_view<charT, traits>(lhs) op basic_string_view<charT, traits>(rhs);
24
+ ```
25
+