MathUtils
A library of mathematical utilities.
Loading...
Searching...
No Matches
mathutils::SimpleGenerator< T > Class Template Reference

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
SimpleGeneratoroperator= (SimpleGenerator &&other) noexcept
 SimpleGenerator (const SimpleGenerator &)=delete
SimpleGeneratoroperator= (const SimpleGenerator &)=delete
void start ()
bool running ()
void try_next ()
take ()
iterator begin ()
iterator end ()
std::unordered_set< T > to_unordered_set ()
std::vector< T > to_vector ()

Detailed Description

template<typename T>
class mathutils::SimpleGenerator< T >

Template class for a coroutine that yields values of type T.

Template Parameters
TThe type of values generated.

The documentation for this class was generated from the following file: