4#include <unordered_map>
19 if (a->id < b->id)
return {a, b};
23 if (a.id < b.id)
return {a, b};
28template <
typename T>
struct hash<
MecaCell::ordered_pair<T>> {
this file contains various miscellanious utility functions & helpers *
ordered_pair< T * > make_ordered_cell_pair(T *a, T *b)
ordered_pair< T > make_ordered_pair(const T &a, const T &b)
Provides common mathematical functions and vector operations.
friend std::ostream & operator<<(std::ostream &out, const ordered_pair &v)
bool operator==(const ordered_pair &other) const
size_t operator()(const MecaCell::ordered_pair< T > &x) const