tmp/tmpcm3780dl/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
#### Operators <a id="locale.operators">[[locale.operators]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
bool operator==(const locale& other) const;
|
| 5 |
```
|
| 6 |
|
|
@@ -12,16 +12,17 @@ copy of the other, or each has a name and the names are identical;
|
|
| 12 |
template<class charT, class traits, class Allocator>
|
| 13 |
bool operator()(const basic_string<charT, traits, Allocator>& s1,
|
| 14 |
const basic_string<charT, traits, Allocator>& s2) const;
|
| 15 |
```
|
| 16 |
|
| 17 |
-
*Effects:* Compares two strings according to the `collate<charT>`
|
|
|
|
| 18 |
|
| 19 |
*Returns:*
|
| 20 |
|
| 21 |
``` cpp
|
| 22 |
-
use_facet<collate<charT>>(*this).compare(s1.data(), s1.data() + s1.size(),
|
| 23 |
s2.data(), s2.data() + s2.size()) < 0
|
| 24 |
```
|
| 25 |
|
| 26 |
*Remarks:* This member operator template (and therefore `locale` itself)
|
| 27 |
meets the requirements for a comparator predicate template
|
|
|
|
| 1 |
+
##### Operators <a id="locale.operators">[[locale.operators]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
bool operator==(const locale& other) const;
|
| 5 |
```
|
| 6 |
|
|
|
|
| 12 |
template<class charT, class traits, class Allocator>
|
| 13 |
bool operator()(const basic_string<charT, traits, Allocator>& s1,
|
| 14 |
const basic_string<charT, traits, Allocator>& s2) const;
|
| 15 |
```
|
| 16 |
|
| 17 |
+
*Effects:* Compares two strings according to the `std::collate<charT>`
|
| 18 |
+
facet.
|
| 19 |
|
| 20 |
*Returns:*
|
| 21 |
|
| 22 |
``` cpp
|
| 23 |
+
use_facet<std::collate<charT>>(*this).compare(s1.data(), s1.data() + s1.size(),
|
| 24 |
s2.data(), s2.data() + s2.size()) < 0
|
| 25 |
```
|
| 26 |
|
| 27 |
*Remarks:* This member operator template (and therefore `locale` itself)
|
| 28 |
meets the requirements for a comparator predicate template
|