CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions
npstat::scast_pluseq_left< T1, T2, T3 > Struct Template Reference

#include <SimpleFunctors.h>

Public Member Functions

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

Detailed Description

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

In-place addition on the left side preceded by a static cast

Definition at line 365 of file SimpleFunctors.h.

Member Function Documentation

◆ operator()()

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

Definition at line 366 of file SimpleFunctors.h.

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