Template Struct ComparableVisitor

Inheritance Relationships

Base Type

  • public boost::python::def_visitor< ComparableVisitor< C, true > >

Struct Documentation

template<class C, bool has_comparison_operators = true>
struct ComparableVisitor : public boost::python::def_visitor<ComparableVisitor<C, true>>

Add the Python method == and != to allow a comparison of this.

Public Functions

template<class PyClass>
inline void visit(PyClass &cl) const