|
Expression Templates Library (ETL)
|
Generator from a sequence. More...
#include <sequence.hpp>

Public Types | |
| using | value_type = T |
| The value type. | |
Public Member Functions | |
| sequence_generator_op (value_type start=0) | |
| Construct a new generator with the given sequence start. More... | |
| value_type | operator() () |
| Generate a new value. More... | |
Public Attributes | |
| const value_type | start |
| The beginning of the sequence. | |
| value_type | current |
| The current sequence element. | |
Static Public Attributes | |
| static constexpr bool | gpu_computable = false |
| Indicates if the operator is computable on GPU. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const sequence_generator_op &s) |
| Outputs the given generator to the given stream. More... | |
Generator from a sequence.
|
inlineexplicit |
Construct a new generator with the given sequence start.
| start | The beginning of the sequence |
|
inline |
Generate a new value.
|
friend |
Outputs the given generator to the given stream.
| os | The output stream |
| s | The generator |
1.8.13