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

Generator which repeatedly returns the same value on each invocation. More...

#include <Generators.hpp>

Public Types

using value_type = std::remove_cvref_t< T >
 

Public Member Functions

constexpr value_type operator() () const noexcept(std::is_nothrow_copy_constructible_v< value_type >)
 Copies the stored value and returns it. More...
 

Public Attributes

const value_type value {}
 

Detailed Description

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

Generator which repeatedly returns the same value on each invocation.

Template Parameters
Tvalue type

Member Typedef Documentation

◆ value_type

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

Member Function Documentation

◆ operator()()

template<value_type T>
constexpr value_type sl::vec::gen::fill< T >::operator() ( ) const
inlineconstexprnoexcept

Copies the stored value and returns it.

Returns
copy of value

Member Data Documentation

◆ value

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

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