RSC  0.16.0
rsc::patterns::detail Namespace Reference

Classes

struct  force_const
 
struct  pair
 pair holds two objects of arbitrary type. More...
 
struct  pair_adapter
 

Functions

template<class _T1 , class _T2 >
bool operator== (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y)
 Two pairs of the same type are equal iff their members are equal. More...
 
template<class _T1 , class _T2 >
bool operator< (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y)
 http://gcc.gnu.org/onlinedocs/libstdc++/20_util/howto.html#pairlt More...
 
template<class _T1 , class _T2 >
bool operator!= (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y)
 Uses operator== to find the result. More...
 
template<class _T1 , class _T2 >
bool operator> (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y)
 Uses operator< to find the result. More...
 
template<class _T1 , class _T2 >
bool operator<= (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y)
 Uses operator< to find the result. More...
 
template<class _T1 , class _T2 >
bool operator>= (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y)
 Uses operator< to find the result. More...
 
template<class _T1 , class _T2 >
pair< _T1, _T2 > make_pair (_T1 __x, _T2 __y)
 A convenience wrapper for creating a pair from two objects. More...
 

Function Documentation

template<class _T1 , class _T2 >
pair<_T1, _T2> rsc::patterns::detail::make_pair ( _T1  __x,
_T2  __y 
)
inline

A convenience wrapper for creating a pair from two objects.

Parameters
__xThe first object.
__yThe second object.
Returns
A newly-constructed pair<> object of the appropriate type.

The standard requires that the objects be passed by reference-to-const, but LWG issue #181 says they should be passed by const value. We follow the LWG by default.

Definition at line 115 of file PairWorkaround.h.

Referenced by rsc::logging::LoggerTreeNode::addChild(), rsc::patterns::Factory< Key, Interface >::createBase(), rsc::config::resolveConfigurationFile(), and rsc::runtime::Properties::set().

Here is the caller graph for this function:

template<class _T1 , class _T2 >
bool rsc::patterns::detail::operator!= ( const pair< _T1, _T2 > &  __x,
const pair< _T1, _T2 > &  __y 
)
inline

Uses operator== to find the result.

Definition at line 80 of file PairWorkaround.h.

template<class _T1 , class _T2 >
bool rsc::patterns::detail::operator< ( const pair< _T1, _T2 > &  __x,
const pair< _T1, _T2 > &  __y 
)
inline
template<class _T1 , class _T2 >
bool rsc::patterns::detail::operator<= ( const pair< _T1, _T2 > &  __x,
const pair< _T1, _T2 > &  __y 
)
inline

Uses operator< to find the result.

Definition at line 92 of file PairWorkaround.h.

template<class _T1 , class _T2 >
bool rsc::patterns::detail::operator== ( const pair< _T1, _T2 > &  __x,
const pair< _T1, _T2 > &  __y 
)
inline

Two pairs of the same type are equal iff their members are equal.

Definition at line 67 of file PairWorkaround.h.

References rsc::patterns::detail::pair< _T1, _T2 >::first, and rsc::patterns::detail::pair< _T1, _T2 >::second.

template<class _T1 , class _T2 >
bool rsc::patterns::detail::operator> ( const pair< _T1, _T2 > &  __x,
const pair< _T1, _T2 > &  __y 
)
inline

Uses operator< to find the result.

Definition at line 86 of file PairWorkaround.h.

template<class _T1 , class _T2 >
bool rsc::patterns::detail::operator>= ( const pair< _T1, _T2 > &  __x,
const pair< _T1, _T2 > &  __y 
)
inline

Uses operator< to find the result.

Definition at line 98 of file PairWorkaround.h.