Reference implementation of std::generator proposal
