OpenKalman
|
An iota collection that is a std::range and may also be tuple_like. More...
#include <iota.hpp>
Public Member Functions | |
template<bool Enable = true, std::enable_if_t< Enable and values::index< Size >, int > = 0> | |
constexpr | iota_view (Start start, Size_ size) |
Construct from an initial value and size. | |
template<bool Enable = true, std::enable_if_t< Enable and values::fixed< Start > and values::index< Size >, int > = 0> | |
constexpr | iota_view (Size_ size) |
Construct from a size, default-initializing Start. | |
constexpr | iota_view () noexcept=default |
Default constructor. | |
![]() | |
constexpr | generate_view (Arg &&arg, Size_ size) noexcept |
Construct from a callable object and a size. | |
constexpr | generate_view (const detail::iota_generator< Start > &) noexcept |
Construct from a statically constructable callable object, if the view is unsized. | |
constexpr | generate_view (Arg &&arg) noexcept |
Construct from a callable object, if the view is unsized. | |
constexpr | generate_view (Size_ size) noexcept |
Construct from a size if the function can be defined statically. | |
constexpr | generate_view ()=default |
Default constructor. | |
constexpr auto | begin () |
constexpr auto | begin () const |
constexpr auto | end () |
constexpr auto | end () const |
constexpr auto | size () const noexcept |
The size of the resulting object. | |
decltype(auto) constexpr | get () & |
Get element i. | |
decltype(auto) constexpr | get () const & |
decltype(auto) constexpr | get () &&noexcept |
decltype(auto) constexpr | get () const &&noexcept |
![]() | |
constexpr bool | empty () |
constexpr bool | empty () const |
constexpr auto | cbegin () |
constexpr auto | cbegin () const |
constexpr auto | cend () |
constexpr auto | cend () const |
constexpr | operator bool () |
constexpr | operator bool () const |
constexpr auto | size () |
constexpr auto | size () const |
decltype(auto) constexpr | front () |
decltype(auto) constexpr | front () const |
decltype(auto) constexpr | back () |
decltype(auto) constexpr | back () const |
decltype(auto) constexpr | operator[] (range_difference_t< D > n) |
decltype(auto) constexpr | operator[] (range_difference_t< D > n) const |
An iota collection that is a std::range and may also be tuple_like.
In all cases, the result will be a std::range. If the Size parameter is values::fixed, then the result will also be a tuple_like sequence effectively in the form of std::integral_sequence<std::size_t, 0>{},...,std::integral_sequence<std::size_t, N>{}
Start | The start value of the iota. |
Size | The size of the resulting collection. The view is unsized if Size is void . |