|
linbox
|
Adaptor class to make a fixed-length sequence behave like a PrimeIterator. More...
#include <random-prime.h>
Public Types | |
| using | Prime_Type = typename std::remove_cv<typename std::remove_reference<decltype(*_cur)>::type>::type |
| using | UniqueSamplingTag = UniqueTrait |
| using | IteratorTag = IteratorCategories::DeterministicTag |
Public Member Functions | |
| PrimeSequence (IteratorT begin, IteratorT end) | |
| PrimeSequence & | operator++ () |
| operator++() (prefix ++ operator) moves to the next prime in the sequence. | |
| const Prime_Type & | operator* () const |
| get the prime. | |
Adaptor class to make a fixed-length sequence behave like a PrimeIterator.
| using Prime_Type = typename std::remove_cv<typename std::remove_reference<decltype(*_cur)>::type>::type |
| using UniqueSamplingTag = UniqueTrait |
| using IteratorTag = IteratorCategories::DeterministicTag |
|
inline |
|
inline |
operator++() (prefix ++ operator) moves to the next prime in the sequence.
|
inline |
get the prime.
returns the actual prime.