TTS v3.0.0
The Tiny Test System
 
Loading...
Searching...
No Matches
tts::logicals< T, U > Struct Template Reference

Defines a data generator that produce logical values in a regular pattern. More...

Detailed Description

template<typename T, typename U = T>
struct tts::logicals< T, U >

Defines a data generator that produce logical values in a regular pattern.

This generator produces logical values (true/false) in a regular pattern defined by two parameters: a starting index and a range.

For a size N, the produced values are:

  • true for indices i where (start + i) % range == 0
  • false for all other indices.
Template Parameters
TType of the starting index
UType of the range