Molassembler  1.0.0
Molecule graph and conformer library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Scine::Molassembler::Temple::Crtp::LexicographicComparable< T > Struct Template Reference

Generates all operators using a method returning a tuple. More...

#include <OperatorSuppliers.h>

Inheritance diagram for Scine::Molassembler::Temple::Crtp::LexicographicComparable< T >:

Public Member Functions

constexpr bool operator== (const LexicographicComparable &other) const
 
constexpr bool operator!= (const LexicographicComparable &other) const
 
constexpr bool operator< (const LexicographicComparable &other) const
 
constexpr bool operator<= (const LexicographicComparable &other) const
 
constexpr bool operator> (const LexicographicComparable &other) const
 
constexpr bool operator>= (const LexicographicComparable &other) const
 

Static Public Member Functions

static constexpr const T & getDerived (const LexicographicComparable &base)
 

Detailed Description

template<typename T>
struct Scine::Molassembler::Temple::Crtp::LexicographicComparable< T >

Generates all operators using a method returning a tuple.

The tuple-generating function should exploit tuples returning references using a form like:

auto tie() const {
// In order of desired lexicographical comparison
return std::tie(member1, member2, ...);
}

The documentation for this struct was generated from the following file: