Max OS 0.3
Loading...
Searching...
No Matches
MaxOS::common::Pair< First, Second > Class Template Reference

A pair of two objects. More...

#include <pair.h>

Public Member Functions

 Pair ()
 _____________________________Implementation___________________________________________///
 
 Pair (First, Second)
 Creates a new pair.
 

Public Attributes

First first
 The first object (often the key)
 
Second second
 The second object (often the value)
 

Detailed Description

template<class First, class Second>
class MaxOS::common::Pair< First, Second >

A pair of two objects.

Template Parameters
FirstThe type of the first object
SecondThe type of the second object

Definition at line 22 of file pair.h.

Constructor & Destructor Documentation

◆ Pair()

template<class First , class Second >
MaxOS::common::Pair< First, Second >::Pair ( First  first,
Second  second 
)

Creates a new pair.

Template Parameters
FirstThe type of the first object
SecondThe type of the second object
Parameters
firstThe first object
secondThe second object

Definition at line 44 of file pair.h.

45 : first(first),
46 second(second) {
47
48 }
First first
The first object (often the key)
Definition pair.h:25
Second second
The second object (often the value)
Definition pair.h:26

Member Data Documentation

◆ first

The first object (often the key)

Definition at line 25 of file pair.h.

◆ second

The second object (often the value)

Definition at line 26 of file pair.h.

Referenced by MaxOS::common::Map< Key, Value >::insert().


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