jbson
C++11/1y BSON library
|
View on GitHub
Functor for basic_element comparison. More...
#include <element.hpp>
Public Types | |
using | is_transparent = std::true_type |
Enables heterogeneous comparison in some standard algorithms and containers. | |
Public Member Functions | |
template<typename EContainer , typename EContainer2 > | |
bool | operator() (const basic_element< EContainer > &lhs, const basic_element< EContainer2 > &rhs) const |
Functor call operator. Normal comparison. | |
template<typename EContainer > | |
bool | operator() (const basic_element< EContainer > &lhs, boost::string_ref rhs) const |
Functor call operator. Heterogeneous comparison. | |
template<typename EContainer > | |
bool | operator() (boost::string_ref lhs, const basic_element< EContainer > &rhs) const |
Functor call operator. Heterogeneous comparison. | |
Functor for basic_element comparison.
Drop-in replacement for std::less, allowing heterogeneous comparison with a name-only comparsion in e.g. std::set.
Definition at line 819 of file element.hpp.