mirror of
https://github.com/boostorg/unordered.git
synced 2025-05-11 13:34:06 +00:00
Remove unary/binary_function from examples/documentation
They are being removed from the standard in C++17, and were never really required.
This commit is contained in:
parent
a7546e298e
commit
3db4654b44
@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
//[case_insensitive_functions
|
//[case_insensitive_functions
|
||||||
struct iequal_to
|
struct iequal_to
|
||||||
: std::binary_function<std::string, std::string, bool>
|
|
||||||
{
|
{
|
||||||
bool operator()(std::string const& x,
|
bool operator()(std::string const& x,
|
||||||
std::string const& y) const
|
std::string const& y) const
|
||||||
@ -20,7 +19,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct ihash
|
struct ihash
|
||||||
: std::unary_function<std::string, std::size_t>
|
|
||||||
{
|
{
|
||||||
std::size_t operator()(std::string const& x) const
|
std::size_t operator()(std::string const& x) const
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct point_hash
|
struct point_hash
|
||||||
: std::unary_function<point, std::size_t>
|
|
||||||
{
|
{
|
||||||
std::size_t operator()(point const& p) const
|
std::size_t operator()(point const& p) const
|
||||||
{
|
{
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
namespace hash_examples
|
namespace hash_examples
|
||||||
{
|
{
|
||||||
struct iequal_to
|
struct iequal_to
|
||||||
: std::binary_function<std::string, std::string, bool>
|
|
||||||
{
|
{
|
||||||
iequal_to() {}
|
iequal_to() {}
|
||||||
explicit iequal_to(std::locale const& l) : locale_(l) {}
|
explicit iequal_to(std::locale const& l) : locale_(l) {}
|
||||||
@ -34,7 +33,6 @@ namespace hash_examples
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct ihash
|
struct ihash
|
||||||
: std::unary_function<std::string, std::size_t>
|
|
||||||
{
|
{
|
||||||
ihash() {}
|
ihash() {}
|
||||||
explicit ihash(std::locale const& l) : locale_(l) {}
|
explicit ihash(std::locale const& l) : locale_(l) {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user