Loading...
Searching...
No Matches
idol::CommutativePair< T, CompareT > Struct Template Reference

Description

template<class T, class CompareT = std::less<T>>
struct idol::CommutativePair< T, CompareT >

Definition at line 37 of file Pair.h.

Public Methods

 CommutativePair (const T &t_1, const T &t_2)
 CommutativePair (T &&t_1, T &&t_2)
 CommutativePair (const T &t_1, T &&t_2)
 CommutativePair (T &&t_1, const T &t_2)
 CommutativePair (const CommutativePair &)=default
 CommutativePair (CommutativePair &&)=default
CommutativePair & operator= (const CommutativePair &)=default
CommutativePair & operator= (CommutativePair &&)=default
bool operator== (const CommutativePair &t_rhs) const
bool operator== (const Pair &t_rhs) const

Public Attributes

first
second

Constructor & Destructor Documentation

◆ CommutativePair() [1/4]

template<class T, class CompareT = std::less<T>>
idol::CommutativePair< T, CompareT >::CommutativePair ( const T & t_1,
const T & t_2 )
inline

Definition at line 38 of file Pair.h.

◆ CommutativePair() [2/4]

template<class T, class CompareT = std::less<T>>
idol::CommutativePair< T, CompareT >::CommutativePair ( T && t_1,
T && t_2 )
inline

Definition at line 39 of file Pair.h.

◆ CommutativePair() [3/4]

template<class T, class CompareT = std::less<T>>
idol::CommutativePair< T, CompareT >::CommutativePair ( const T & t_1,
T && t_2 )
inline

Definition at line 40 of file Pair.h.

◆ CommutativePair() [4/4]

template<class T, class CompareT = std::less<T>>
idol::CommutativePair< T, CompareT >::CommutativePair ( T && t_1,
const T & t_2 )
inline

Definition at line 41 of file Pair.h.

Methods Documentation

◆ operator==() [1/2]

template<class T, class CompareT = std::less<T>>
bool idol::CommutativePair< T, CompareT >::operator== ( const CommutativePair< T, CompareT > & t_rhs) const
inline

Definition at line 49 of file Pair.h.

◆ operator==() [2/2]

bool idol::Pair< T, T >::operator== ( const Pair< T, T > & t_rhs) const
inlineinherited

Definition at line 31 of file Pair.h.

Member Data Documentation

◆ first

T idol::Pair< T, T >::first
inherited

Definition at line 17 of file Pair.h.

◆ second

T idol::Pair< T, T >::second
inherited

Definition at line 18 of file Pair.h.