Lumiera  0.pre.03
»edit your freedom«
GenNode::IDComparator Struct Reference

#include "lib/diff/gen-node.hpp"

Description

allow for storage in ordered containers, ordering based on the human-readable ID within the GenNode.

Warning
this constitutes a weaker equivalence than given by the equality comparison (operator==), since GenNode::ID is an EntryID, which also includes the type parameter into the identity (hash). This means, two GenNodes with different real payload type but same ID symbol will not be equal, but be deemed equivalent by this IDComparator. This can be dangerous when building a set or map based on this comparator.

Definition at line 440 of file gen-node.hpp.

Public Member Functions

bool operator() (GenNode const &left, GenNode const &right) const
 
+ Collaboration diagram for GenNode::IDComparator:

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