mardi 5 avril 2016

Currying Wrapper class for std::function

I wrote a Wrapper class around std::function to implement some methods like andThen and so on. I also want a .curry which returns a curryed version of my wrapper class. how can I achieve this in c++11?

template<typename> class Function;

template<typename Ret, typename... Params >
class Function<Ret(Params...)> {
public:
    //member methods
private:
    std::function<Ret(Params...)> local_function;

Aucun commentaire:

Enregistrer un commentaire