Simple-Vector v1.3.0
sl::vec::gen::iota< T > Struct Template Reference

Generator which returns incrementing values on each invocation. More...

#include <Generators.hpp>

Public Types

using value_type = std::remove_cvref_t< T >
 

Public Member Functions

constexpr value_type operator() ()
 post-increments the stored value and returns a copy More...
 

Public Attributes

value_type value {}
 

Detailed Description

template<value_type T>
struct sl::vec::gen::iota< T >

Generator which returns incrementing values on each invocation.

Template Parameters
Tvalue type

Member Typedef Documentation

◆ value_type

template<value_type T>
using sl::vec::gen::iota< T >::value_type = std::remove_cvref_t<T>

Member Function Documentation

◆ operator()()

template<value_type T>
constexpr value_type sl::vec::gen::iota< T >::operator() ( )
inlineconstexpr

post-increments the stored value and returns a copy

Returns
copy of value

Member Data Documentation

◆ value

template<value_type T>
value_type sl::vec::gen::iota< T >::value {}

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