neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::i_pair< T1, T2 > Class Template Referenceabstract

#include <i_pair.hpp>

Public Types

typedef self_type abstract_type
 
typedef T1 first_type
 
typedef T2 second_type
 

Public Member Functions

virtual self_type & operator= (const self_type &aRhs)=0
 
virtual const first_typefirst () const =0
 
virtual first_typefirst ()=0
 
virtual const second_typesecond () const =0
 
virtual second_typesecond ()=0
 
constexpr bool operator== (const self_type &that) const noexcept
 
constexpr std::partial_ordering operator<=> (const self_type &that) const noexcept
 

Friends

void swap (self_type &a, self_type &b)
 

Detailed Description

template<typename T1, typename T2>
class neolib::i_pair< T1, T2 >

Definition at line 43 of file i_pair.hpp.

Member Typedef Documentation

◆ abstract_type

template<typename T1 , typename T2 >
typedef self_type neolib::i_pair< T1, T2 >::abstract_type

Definition at line 47 of file i_pair.hpp.

◆ first_type

template<typename T1 , typename T2 >
typedef T1 neolib::i_pair< T1, T2 >::first_type

Definition at line 48 of file i_pair.hpp.

◆ second_type

template<typename T1 , typename T2 >
typedef T2 neolib::i_pair< T1, T2 >::second_type

Definition at line 49 of file i_pair.hpp.

Member Function Documentation

◆ first() [1/2]

template<typename T1 , typename T2 >
virtual const first_type & neolib::i_pair< T1, T2 >::first ( ) const
pure virtual

Implemented in neolib::pair< T1, T2 >.

◆ first() [2/2]

template<typename T1 , typename T2 >
virtual first_type & neolib::i_pair< T1, T2 >::first ( )
pure virtual

Implemented in neolib::pair< T1, T2 >.

◆ operator<=>()

template<typename T1 , typename T2 >
constexpr std::partial_ordering neolib::i_pair< T1, T2 >::operator<=> ( const self_type &  that) const
inlineconstexprnoexcept

Definition at line 69 of file i_pair.hpp.

◆ operator=()

template<typename T1 , typename T2 >
virtual self_type & neolib::i_pair< T1, T2 >::operator= ( const self_type &  aRhs)
pure virtual

Implemented in neolib::pair< T1, T2 >.

◆ operator==()

template<typename T1 , typename T2 >
constexpr bool neolib::i_pair< T1, T2 >::operator== ( const self_type &  that) const
inlineconstexprnoexcept

Definition at line 65 of file i_pair.hpp.

◆ second() [1/2]

template<typename T1 , typename T2 >
virtual const second_type & neolib::i_pair< T1, T2 >::second ( ) const
pure virtual

Implemented in neolib::pair< T1, T2 >.

◆ second() [2/2]

template<typename T1 , typename T2 >
virtual second_type & neolib::i_pair< T1, T2 >::second ( )
pure virtual

Implemented in neolib::pair< T1, T2 >.

Friends And Related Symbol Documentation

◆ swap

template<typename T1 , typename T2 >
void swap ( self_type &  a,
self_type &  b 
)
friend

Definition at line 58 of file i_pair.hpp.


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