|
MathUtils
A library of mathematical utilities.
|
Template class for a coroutine that yields values of type T. More...
#include <simple_generator.hpp>
Classes | |
| class | promise_type |
Public Types | |
| using | handle_type = std::coroutine_handle<promise_type> |
Public Member Functions | |
| SimpleGenerator (handle_type h) | |
| SimpleGenerator (SimpleGenerator &&other_sg) noexcept | |
| SimpleGenerator & | operator= (SimpleGenerator &&other) noexcept |
| SimpleGenerator (const SimpleGenerator &)=delete | |
| SimpleGenerator & | operator= (const SimpleGenerator &)=delete |
| void | start () |
| bool | running () |
| void | try_next () |
| T | take () |
| iterator | begin () |
| iterator | end () |
| std::unordered_set< T > | to_unordered_set () |
| std::vector< T > | to_vector () |
Template class for a coroutine that yields values of type T.
| T | The type of values generated. |