tmp/tmpup96sftw/{from.md → to.md}
RENAMED
|
@@ -1,32 +1,26 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
bool operator==(const locale& other) const;
|
| 5 |
```
|
| 6 |
|
| 7 |
*Returns:* `true` if both arguments are the same locale, or one is a
|
| 8 |
copy of the other, or each has a name and the names are identical;
|
| 9 |
`false` otherwise.
|
| 10 |
|
| 11 |
-
``` cpp
|
| 12 |
-
bool operator!=(const locale& other) const;
|
| 13 |
-
```
|
| 14 |
-
|
| 15 |
-
*Returns:* `!(*this == other)`.
|
| 16 |
-
|
| 17 |
``` cpp
|
| 18 |
template<class charT, class traits, class Allocator>
|
| 19 |
bool operator()(const basic_string<charT, traits, Allocator>& s1,
|
| 20 |
const basic_string<charT, traits, Allocator>& s2) const;
|
| 21 |
```
|
| 22 |
|
| 23 |
*Effects:* Compares two strings according to the `collate<charT>` facet.
|
| 24 |
|
| 25 |
*Remarks:* This member operator template (and therefore `locale` itself)
|
| 26 |
-
|
| 27 |
-
|
| 28 |
|
| 29 |
*Returns:*
|
| 30 |
|
| 31 |
``` cpp
|
| 32 |
use_facet<collate<charT>>(*this).compare(s1.data(), s1.data() + s1.size(),
|
|
|
|
| 1 |
+
#### Operators <a id="locale.operators">[[locale.operators]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
bool operator==(const locale& other) const;
|
| 5 |
```
|
| 6 |
|
| 7 |
*Returns:* `true` if both arguments are the same locale, or one is a
|
| 8 |
copy of the other, or each has a name and the names are identical;
|
| 9 |
`false` otherwise.
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
``` cpp
|
| 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>` facet.
|
| 18 |
|
| 19 |
*Remarks:* This member operator template (and therefore `locale` itself)
|
| 20 |
+
meets the requirements for a comparator predicate template
|
| 21 |
+
argument [[algorithms]] applied to strings.
|
| 22 |
|
| 23 |
*Returns:*
|
| 24 |
|
| 25 |
``` cpp
|
| 26 |
use_facet<collate<charT>>(*this).compare(s1.data(), s1.data() + s1.size(),
|