casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casacore::Modulo< L, R, RES > Struct Template Reference

Functor to take modulo of (integer) variables of possibly different types in the C way. More...

#include <Functors.h>

Inheritance diagram for casacore::Modulo< L, R, RES >:

Public Member Functions

RES operator() (const L &x, const R &y) const
 

Detailed Description

template<typename L, typename R = L, typename RES = L>
struct casacore::Modulo< L, R, RES >

Functor to take modulo of (integer) variables of possibly different types in the C way.

This is unlike std::modulo which requires equal types.

Definition at line 212 of file Functors.h.

Member Function Documentation

template<typename L , typename R = L, typename RES = L>
RES casacore::Modulo< L, R, RES >::operator() ( const L &  x,
const R &  y 
) const
inline

Definition at line 214 of file Functors.h.


The documentation for this struct was generated from the following file: