17 #ifndef AGX_SYMMETRICPAIR_H 18 #define AGX_SYMMETRICPAIR_H 39 return ( a == this->first || a == this->second );
49 return (a.first == b.first && a.second == b.second) || (a.first == b.second && a.second == b.first);
71 std::ostream& operator << ( std::ostream& output, const SymmetricPair<T>& pair)
73 output << pair.first <<
" : " << pair.second;
AGXCORE_EXPORT UInt32 hash(const T &key)
A std::pair, with both elements of the same type, and symmetric so (a, b) == (b, a) ...
bool operator==(T val, InvalidIndexStruct)
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
bool operator!=(T val, InvalidIndexStruct)
SymmetricPair(const T &a, const T &b)
bool contains(const T &a) const