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

Generates boolean values in a regular pattern. More...

Detailed Description

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

Generates boolean values in a regular pattern.

The pattern depends on a starting index start and a period range, given in that order to the constructor. The element at index i of a sequence is:

  • true if (start + i) % range == 0,
  • false otherwise.

A scalar target gets false.

Template Parameters
TType of the starting index
UType of the range