Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Pyston::BinaryWrapper< R, T, wrapped > Struct Template Reference

#include <Functors.h>

Public Member Functions

operator() (T left, T right) const
 

Detailed Description

template<typename R, typename T, R(*)(T, T) wrapped>
struct Pyston::BinaryWrapper< R, T, wrapped >

Like UnaryWrapper, this class helps defining templated-functors that receive two parameters, so it can be used as std::plus, std::multiplies and similar ones.

Template Parameters
RReturn type
TParameter type. It is assumed both parameters are to be the same, since this is going to be used mostly to define operators
wrappedA pointer to the function being wrapped

Definition at line 66 of file Functors.h.

Member Function Documentation

◆ operator()()

template<typename R , typename T , R(*)(T, T) wrapped>
R Pyston::BinaryWrapper< R, T, wrapped >::operator() ( left,
right 
) const
inline

Definition at line 67 of file Functors.h.


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