12#ifndef ARCANE_UTILS_FUNCTORUTILS_H
13#define ARCANE_UTILS_FUNCTORUTILS_H
17#include "arccore/base/Functor.h"
31template<
typename LambdaType,
typename A1> StdFunctorWithArgumentT<A1>
32make(
const LambdaType& f,
void (LambdaType::*)(A1 r) const)
34 return StdFunctorWithArgumentT<A1>(f);
45template<
typename LambdaType>
auto
46make(
const LambdaType& f) ->
decltype(make(f,&LambdaType::operator()))
48 return make(f,&LambdaType::operator());
52template<
typename LambdaType,
typename A1> StdFunctorWithArgumentT<A1>*
53makePointer(
const LambdaType& f,
void (LambdaType::*)(A1 r) const)
55 return new StdFunctorWithArgumentT<A1>(f);
67template<
typename LambdaType>
auto
68makePointer(
const LambdaType& f) ->
decltype(makePointer(f,&LambdaType::operator()))
70 return makePointer(f,&LambdaType::operator());
100template<
typename LambdaType,
typename T,
typename ArgType>
void
101apply(T* x,
void (T::*ptr)(IFunctorWithArgumentT<ArgType>*),const LambdaType& f)
Déclarations des types utilisés dans Arcane.