forked from boostorg/beast
@@ -1,3 +1,4 @@
|
|||||||
|
* iless and iequal take part in Heterogeneous Lookup
|
||||||
* Fix `max` compile error
|
* Fix `max` compile error
|
||||||
* Deprecate `string_param` (API Change)
|
* Deprecate `string_param` (API Change)
|
||||||
|
|
||||||
|
@@ -33,6 +33,10 @@ iequals(
|
|||||||
/** A case-insensitive less predicate for strings.
|
/** A case-insensitive less predicate for strings.
|
||||||
|
|
||||||
The case-comparison operation is defined only for low-ASCII characters.
|
The case-comparison operation is defined only for low-ASCII characters.
|
||||||
|
|
||||||
|
As of C++14, containers using this class as the `Compare` type will take part
|
||||||
|
in heterogeneous lookup if the search term is implicitly convertible to
|
||||||
|
@ref string_view.
|
||||||
*/
|
*/
|
||||||
struct iless
|
struct iless
|
||||||
{
|
{
|
||||||
@@ -41,11 +45,17 @@ struct iless
|
|||||||
operator()(
|
operator()(
|
||||||
string_view lhs,
|
string_view lhs,
|
||||||
string_view rhs) const;
|
string_view rhs) const;
|
||||||
|
|
||||||
|
using is_transparent = void;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** A case-insensitive equality predicate for strings.
|
/** A case-insensitive equality predicate for strings.
|
||||||
|
|
||||||
The case-comparison operation is defined only for low-ASCII characters.
|
The case-comparison operation is defined only for low-ASCII characters.
|
||||||
|
|
||||||
|
As of C++14, containers using this class as the `Compare` type will take part
|
||||||
|
in heterogeneous lookup if the search term is implicitly convertible to
|
||||||
|
@ref string_view.
|
||||||
*/
|
*/
|
||||||
struct iequal
|
struct iequal
|
||||||
{
|
{
|
||||||
@@ -56,6 +66,8 @@ struct iequal
|
|||||||
{
|
{
|
||||||
return iequals(lhs, rhs);
|
return iequals(lhs, rhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
using is_transparent = void;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // beast
|
} // beast
|
||||||
|
Reference in New Issue
Block a user