3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
Loading...
Searching...
No Matches
Engine3DRadSpace::Pair< T1, T2 > Struct Template Reference

A pair of values. More...

#include <Pair.hpp>

Public Types

using FirstType = T1
using SecondType = T2

Public Member Functions

constexpr Pair ()=default
 Constructs an pair with default-initialized values.
constexpr Pair (const T1 &first, const T2 &second)
 Constructs a pair with the specified values.
constexpr Pair (T1 &&first, T2 &&second)
 Constructs a pair that takes ownership of the specified values.
constexpr auto operator<=> (const Pair &) const =default

Public Attributes

T1 First
 The first value of the pair.
T2 Second
 The second value of the pair.

Detailed Description

template<typename T1, typename T2>
struct Engine3DRadSpace::Pair< T1, T2 >

A pair of values.

Template Parameters
T1Type of the first value
T2Type of the second value

Member Typedef Documentation

◆ FirstType

template<typename T1, typename T2>
using Engine3DRadSpace::Pair< T1, T2 >::FirstType = T1

◆ SecondType

template<typename T1, typename T2>
using Engine3DRadSpace::Pair< T1, T2 >::SecondType = T2

Constructor & Destructor Documentation

◆ Pair() [1/3]

template<typename T1, typename T2>
Engine3DRadSpace::Pair< T1, T2 >::Pair ( )
constexprdefault

Constructs an pair with default-initialized values.

◆ Pair() [2/3]

template<typename T1, typename T2>
Engine3DRadSpace::Pair< T1, T2 >::Pair ( const T1 & first,
const T2 & second )
inlineconstexpr

Constructs a pair with the specified values.

Parameters
firstFirst value of the pair.
secondSecond value of the pair.

◆ Pair() [3/3]

template<typename T1, typename T2>
Engine3DRadSpace::Pair< T1, T2 >::Pair ( T1 && first,
T2 && second )
inlineconstexpr

Constructs a pair that takes ownership of the specified values.

Parameters
firstFirst value of the pair.
secondSecond value of the pair.

Member Function Documentation

◆ operator<=>()

template<typename T1, typename T2>
auto Engine3DRadSpace::Pair< T1, T2 >::operator<=> ( const Pair< T1, T2 > & ) const
constexprdefault

Member Data Documentation

◆ First

template<typename T1, typename T2>
T1 Engine3DRadSpace::Pair< T1, T2 >::First

The first value of the pair.

◆ Second

template<typename T1, typename T2>
T2 Engine3DRadSpace::Pair< T1, T2 >::Second

The second value of the pair.


The documentation for this struct was generated from the following file:
  • E:/3DRadSpace/Engine3DRadSpace/Core/Pair.hpp