OpenKalman
Public Member Functions | List of all members
OpenKalman::collections::repeat_tuple_view< N, T > Struct Template Reference

A uniformly_gettable view that replicates a particular value N number of times. More...

#include <repeat.hpp>

Public Member Functions

template<typename Arg , std::enable_if_t< stdex::constructible_from< T, Arg &&>, int > = 0>
constexpr repeat_tuple_view (Arg &&arg)
 
constexpr T value () const
 
template<std::size_t i>
decltype(auto) constexpr get () &
 Get element i of a repeat_tuple_view.
 
template<std::size_t i>
decltype(auto) constexpr get () const &
 
template<std::size_t i>
decltype(auto) constexpr get () &&noexcept
 
template<std::size_t i>
decltype(auto) constexpr get () const &&noexcept
 

Detailed Description

template<std::size_t N, typename T>
struct OpenKalman::collections::repeat_tuple_view< N, T >

A uniformly_gettable view that replicates a particular value N number of times.

Template Parameters
NThe number of copies
TThe type of the object to be replicated

Member Function Documentation

◆ get() [1/3]

template<std::size_t N, typename T >
template<std::size_t i>
decltype(auto) constexpr OpenKalman::collections::repeat_tuple_view< N, T >::get ( ) const &
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ get() [2/3]

template<std::size_t N, typename T >
template<std::size_t i>
decltype(auto) constexpr OpenKalman::collections::repeat_tuple_view< N, T >::get ( ) &&
inlinenoexcept

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ get() [3/3]

template<std::size_t N, typename T >
template<std::size_t i>
decltype(auto) constexpr OpenKalman::collections::repeat_tuple_view< N, T >::get ( ) const &&
inlinenoexcept

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ value()

template<std::size_t N, typename T >
constexpr T OpenKalman::collections::repeat_tuple_view< N, T >::value ( ) const
inline
Returns
The underlying replicated value

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