Callable object creating a kumi::tuple containing N copies of v.
#include <kumi/algorithm/generate.hpp>
template<std::size_t N, typename V>
constexpr auto fill<N>(V
const& v)
noexcept;
constexpr fill_t< N > fill
Callable object creating a kumi::tuple containing N copies of v.
Definition generate.hpp:149
- N: Number of replications
- A tuple containing N copies of v
template<std::
size_t N,
typename T>
using fill_t =
decltype(
kumi::fill<N>(std::declval<T>()));
template<std::size_t N, typename T> struct fill
{
using type = kumi::result::fill_t<N, T>;
};
Computes the return type of a call to kumi::fill
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
std::cout << kumi::fill<7>(42.63) << "\n";
}