A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pair, but does not expose its members directly. More...
Public Types | |
typedef T1 | first_type |
Type of member first, the first template parameter (T1) More... | |
typedef T2 | second_type |
Type of member second, the second template parameter (T2) More... | |
Public Member Functions | |
Tuple2 ()=default | |
Default construct. More... | |
Tuple2 (const T1 &f, const T2 &s) | |
Copy construct from components. More... | |
Tuple2 (T1 &&f, T2 &&s) | |
Move construct from components. More... | |
Tuple2 (const std::pair< T1, T2 > &vals) | |
Copy construct from std::pair. More... | |
Tuple2 (std::pair< T1, T2 > &&vals) | |
Move construct from std::pair. More... | |
Tuple2 (Istream &is) | |
Construct from Istream. More... | |
const T1 & | first () const noexcept |
Return first. More... | |
T1 & | first () noexcept |
Return first. More... | |
const T2 & | second () const noexcept |
Return second. More... | |
T2 & | second () noexcept |
Return second. More... | |
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pair, but does not expose its members directly.
typedef T1 first_type |
typedef T2 second_type |
|
default |
Default construct.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
Return first.
Definition at line 118 of file Tuple2.H.
Referenced by correctedCellVolumeWeightMethod::calculateAddressing(), pointConstraint::combine(), patchProbes::findElements(), distributedTriSurfaceMesh::findNearest(), mappedPatchBase::findSamples(), meshToMeshMethod::interVolAndCentroid(), scalars::operation(), minFirstOp< T1 >::operator()(), maxFirstOp< T1 >::operator()(), Foam::operator+(), forceSuSp::operator+=(), forceSuSp::operator-=(), Foam::operator<(), Foam::operator<<(), Foam::operator==(), Foam::operator>>(), parProfiling::report(), Foam::reverse(), SemiImplicitSource< Type >::setFieldData(), symplectic::solve(), Newmark::solve(), wallBoundedStreamLine::track(), Foam::transform(), exprResultDelayed::updateReadValue(), and colourTable::value().
|
inlinenoexcept |
Return second.
Definition at line 130 of file Tuple2.H.
Referenced by correctedCellVolumeWeightMethod::calculateAddressing(), pointConstraint::combine(), patchProbes::findElements(), distributedTriSurfaceMesh::findNearest(), mappedPatchBase::findSamples(), meshToMeshMethod::interVolAndCentroid(), scalars::operation(), Foam::operator+(), forceSuSp::operator+=(), forceSuSp::operator-=(), Foam::operator<(), Foam::operator<<(), Foam::operator==(), Foam::operator>>(), parProfiling::report(), Foam::reverse(), SemiImplicitSource< Type >::setFieldData(), symplectic::solve(), wallBoundedStreamLine::track(), and Foam::transform().