NEST main@caf0ae8
 
Loading...
Searching...
No Matches
boost::tuples Namespace Reference

Functions

template<typename T , typename U >
void swap (boost::tuple< T &, U & > a, boost::tuple< T &, U & > b) noexcept
 Exchanges values of two two-element tuples.
 
template<class T1 , class T2 , class S1 , class S2 >
bool operator< (const cons< T1, T2 > &lhs, const cons< S1, S2 > &rhs)
 Less than relational operator for Boost tuples.
 

Function Documentation

◆ operator<()

template<class T1 , class T2 , class S1 , class S2 >
bool boost::tuples::operator< ( const cons< T1, T2 > &  lhs,
const cons< S1, S2 > &  rhs 
)
inline

Less than relational operator for Boost tuples.

Parameters
lhsFirst operand.
rhsSecond operand.

Modified operator, based on the less than operator from the Boost library. Have to implement a custom operator to only compare the first values of the tuples.

◆ swap()

template<typename T , typename U >
void boost::tuples::swap ( boost::tuple< T &, U & >  a,
boost::tuple< T &, U & >  b 
)
inlinenoexcept

Exchanges values of two two-element tuples.

Template Parameters
TType of the first value in the tuples.
UType of the second value in the tuples.

References swap().

Referenced by swap().

Here is the call graph for this function:
Here is the caller graph for this function: