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

#include <Functors.h>

Public Member Functions

operator() (T value) const
 

Detailed Description

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

This class helps defining templated-functors, very much alike std::negate, but wrapping C calls that do not have a corresponding templated functor, and that receive a single parameter.

Template Parameters
RReturn type
TParameter type
wrappedA pointer to the function being wrapped

Definition at line 48 of file Functors.h.

Member Function Documentation

◆ operator()()

template<typename R , typename T , R(*)(T) wrapped>
R Pyston::UnaryWrapper< R, T, wrapped >::operator() ( value) const
inline

Definition at line 49 of file Functors.h.


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