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:
Daniel James 2016-11-06 10:19:17 +00:00
parent a7546e298e
commit 3db4654b44
3 changed files with 0 additions and 5 deletions

View File

@ -10,7 +10,6 @@
//[case_insensitive_functions
struct iequal_to
: std::binary_function<std::string, std::string, bool>
{
bool operator()(std::string const& x,
std::string const& y) const
@ -20,7 +19,6 @@
};
struct ihash
: std::unary_function<std::string, std::size_t>
{
std::size_t operator()(std::string const& x) const
{

View File

@ -18,7 +18,6 @@
}
struct point_hash
: std::unary_function<point, std::size_t>
{
std::size_t operator()(point const& p) const
{

View File

@ -19,7 +19,6 @@
namespace hash_examples
{
struct iequal_to
: std::binary_function<std::string, std::string, bool>
{
iequal_to() {}
explicit iequal_to(std::locale const& l) : locale_(l) {}
@ -34,7 +33,6 @@ namespace hash_examples
};
struct ihash
: std::unary_function<std::string, std::size_t>
{
ihash() {}
explicit ihash(std::locale const& l) : locale_(l) {}