CMS 3D CMS Logo

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

#include <SimpleFunctors.h>

Public Member Functions

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

Detailed Description

template<typename T1, typename T2, typename T3 = T2>
struct npstat::scast_assign_right< T1, T2, T3 >

Right assignment functor preceded by a static cast

Definition at line 351 of file SimpleFunctors.h.

Member Function Documentation

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

Definition at line 352 of file SimpleFunctors.h.

352 { return right = static_cast<T3>(left); }