ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::boxing::Pair< T1, T2 > Struct Template Reference

Description:

template<typename T1, typename T2>
requires ( std::is_trivially_copyable_v<T1> && std::is_trivially_copyable_v<T2> && ( sizeof(T1) + sizeof(T2) <= 2 * sizeof(void*) ) )
struct alib::boxing::Pair< T1, T2 >

This is a simple helper type that forms a pair of two values. It is useful when the boxing of such a pair is wanted. The benefit over using std::pair is, that this struct does not provide any extras but the plain public values, and thus it is trivially copyable in the case that both types are.

Template Parameters
T1The type of the first value.
T2The type of the second first value.

Definition at line 756 of file boxing/placeholder.inl.

Public Field Index:

T1 First
 The first value.
 
T2 Second
 The second value.
 

Field Details:

◆ First

template<typename T1, typename T2>
T1 alib::boxing::Pair< T1, T2 >::First

The first value.

Definition at line 757 of file boxing/placeholder.inl.

◆ Second

template<typename T1, typename T2>
T2 alib::boxing::Pair< T1, T2 >::Second

The second value.

Definition at line 758 of file boxing/placeholder.inl.


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