mercredi 30 septembre 2015

Lazy evaluation with pair factory in C++

I'm trying to implement lazy in C++ like in this Python example using decorators:

@lazy
@factory(Category)
def func(self):
    return self.__raw_data  # for building object include object type and **params

I found Getting Lazy with C++ and Lazy evaluation in C++ post but they haven't helped me. I don't understand how implement the lazy.

Aucun commentaire:

Enregistrer un commentaire