Callable object creating a kumi::tuple containing an increasing ramp of values.
More...
|
| template<std::size_t N> |
| constexpr iota_t< N > | kumi::iota {} |
Callable object creating a kumi::tuple containing an increasing ramp of values.
◆ iota
template<std::size_t N>
|
|
inlineconstexprnodiscardnoexcept |
{
template<std::size_t N, typename V>
constexpr auto iota(V v)
noexcept;
}
constexpr iota_t< N > iota
Definition generate.hpp:217
Main KUMI namespace.
Definition algorithm.hpp:11
- N: Number of replications
- A tuple containing N copies of {v, v + 1, ..., v + N-1}
template<std::size_t N, typename T> struct iota
{
using type = kumi::result::iota_t<N, T>;
};
Computes the return type of a call to kumi::iota
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
std::cout << kumi::iota<10>(3.57f) << "\n";
}