CMS 3D CMS Logo

List of all members | Public Member Functions
npstat::assign_right< T1, T2 > Struct Template Reference

#include <SimpleFunctors.h>

Public Member Functions

T2 & operator() (const T1 &left, T2 &right) const
 

Detailed Description

template<typename T1, typename T2>
struct npstat::assign_right< T1, T2 >

Right assignment functor. Reverses the assignment direction in comparison with the normal binary assignment operator.

Definition at line 243 of file SimpleFunctors.h.

Member Function Documentation

template<typename T1 , typename T2 >
T2& npstat::assign_right< T1, T2 >::operator() ( const T1 &  left,
T2 &  right 
) const
inline

Definition at line 245 of file SimpleFunctors.h.

246  {return right = left;}