mirror of
https://github.com/boostorg/utility.git
synced 2025-05-11 05:14:02 +00:00
Merge branch 'develop'
This commit is contained in:
commit
a3ab942bc2
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include <boost/utility/base_from_member.hpp> // for boost::base_from_member
|
#include <boost/utility/base_from_member.hpp> // for boost::base_from_member
|
||||||
|
|
||||||
#include <functional> // for std::binary_function, std::less
|
#include <functional> // for std::less
|
||||||
#include <iostream> // for std::cout (std::ostream, std::endl indirectly)
|
#include <iostream> // for std::cout (std::ostream, std::endl indirectly)
|
||||||
#include <set> // for std::set
|
#include <set> // for std::set
|
||||||
#include <typeinfo> // for std::type_info
|
#include <typeinfo> // for std::type_info
|
||||||
@ -46,7 +46,6 @@ template < typename T >
|
|||||||
|
|
||||||
// A custom comparison type is needed
|
// A custom comparison type is needed
|
||||||
struct object_id_compare
|
struct object_id_compare
|
||||||
: std::binary_function<object_id, object_id, bool>
|
|
||||||
{
|
{
|
||||||
bool operator ()( object_id const &a, object_id const &b ) const;
|
bool operator ()( object_id const &a, object_id const &b ) const;
|
||||||
|
|
||||||
|
@ -33,8 +33,12 @@ bool equal_pointees ( OptionalPointee const& x, OptionalPointee const& y )
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<class OptionalPointee>
|
template<class OptionalPointee>
|
||||||
struct equal_pointees_t : std::binary_function<OptionalPointee,OptionalPointee,bool>
|
struct equal_pointees_t
|
||||||
{
|
{
|
||||||
|
typedef bool result_type;
|
||||||
|
typedef OptionalPointee first_argument_type;
|
||||||
|
typedef OptionalPointee second_argument_type;
|
||||||
|
|
||||||
bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const
|
bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const
|
||||||
{ return equal_pointees(x,y) ; }
|
{ return equal_pointees(x,y) ; }
|
||||||
} ;
|
} ;
|
||||||
@ -56,8 +60,12 @@ bool less_pointees ( OptionalPointee const& x, OptionalPointee const& y )
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<class OptionalPointee>
|
template<class OptionalPointee>
|
||||||
struct less_pointees_t : std::binary_function<OptionalPointee,OptionalPointee,bool>
|
struct less_pointees_t
|
||||||
{
|
{
|
||||||
|
typedef bool result_type;
|
||||||
|
typedef OptionalPointee first_argument_type;
|
||||||
|
typedef OptionalPointee second_argument_type;
|
||||||
|
|
||||||
bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const
|
bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const
|
||||||
{ return less_pointees(x,y) ; }
|
{ return less_pointees(x,y) ; }
|
||||||
} ;
|
} ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user