Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Member Functions
ext::pair< T, R > Class Template Reference

Class extending the pair class from the standard library. Original reason is to allow printing of the pair with overloaded operator <<. More...

#include <pair.hpp>

Inheritance diagram for ext::pair< T, R >:
[legend]
Collaboration diagram for ext::pair< T, R >:
[legend]

Public Member Functions

 pair (const pair &other)=default
 
 pair (pair &&other)=default
 
pairoperator= (pair &&other)=default
 
pairoperator= (const pair &other)=default
 

Detailed Description

template<class T, class R>
class ext::pair< T, R >

Class extending the pair class from the standard library. Original reason is to allow printing of the pair with overloaded operator <<.

The class mimics the behavior of the pair from the standatd library.

Template Parameters
Tthe type of the first value inside the pair
Rthe type of the second value inside the pair

Constructor & Destructor Documentation

◆ pair() [1/2]

template<class T , class R >
ext::pair< T, R >::pair ( const pair< T, R > &  other)
default

Default constructor needed by g++ since it is not inherited

◆ pair() [2/2]

template<class T , class R >
ext::pair< T, R >::pair ( pair< T, R > &&  other)
default

Copy constructor needed by g++ since it is not inherited

Member Function Documentation

◆ operator=() [1/2]

template<class T , class R >
pair & ext::pair< T, R >::operator= ( const pair< T, R > &  other)
default

Move operator = needed by g++ since it is not inherited

◆ operator=() [2/2]

template<class T , class R >
pair & ext::pair< T, R >::operator= ( pair< T, R > &&  other)
default

Copy operator = needed by g++ since it is not inherited


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