Loading...
Searching...
No Matches
idol::Pair< T1, T2 > Struct Template Reference

Description

template<class T1, class T2>
struct idol::Pair< T1, T2 >

Definition at line 16 of file Pair.h.

Public Methods

 Pair (const T1 &t_1, const T2 &t_2)
 Pair (T1 &&t_1, T2 &&t_2)
 Pair (const T1 &t_1, T2 &&t_2)
 Pair (T1 &&t_1, const T2 &t_2)
 Pair (const Pair &)=default
 Pair (Pair &&)=default
Pair & operator= (const Pair &)=default
Pair & operator= (Pair &&)=default
bool operator== (const Pair &t_rhs) const

Public Attributes

T1 first
T2 second

Constructor & Destructor Documentation

◆ Pair() [1/4]

template<class T1, class T2>
idol::Pair< T1, T2 >::Pair ( const T1 & t_1,
const T2 & t_2 )
inline

Definition at line 20 of file Pair.h.

◆ Pair() [2/4]

template<class T1, class T2>
idol::Pair< T1, T2 >::Pair ( T1 && t_1,
T2 && t_2 )
inline

Definition at line 21 of file Pair.h.

◆ Pair() [3/4]

template<class T1, class T2>
idol::Pair< T1, T2 >::Pair ( const T1 & t_1,
T2 && t_2 )
inline

Definition at line 22 of file Pair.h.

◆ Pair() [4/4]

template<class T1, class T2>
idol::Pair< T1, T2 >::Pair ( T1 && t_1,
const T2 & t_2 )
inline

Definition at line 23 of file Pair.h.

Methods Documentation

◆ operator==()

template<class T1, class T2>
bool idol::Pair< T1, T2 >::operator== ( const Pair< T1, T2 > & t_rhs) const
inline

Definition at line 31 of file Pair.h.

Member Data Documentation

◆ first

template<class T1, class T2>
T1 idol::Pair< T1, T2 >::first

Definition at line 17 of file Pair.h.

◆ second

template<class T1, class T2>
T2 idol::Pair< T1, T2 >::second

Definition at line 18 of file Pair.h.