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>
struct fill
{
};
template<std::size_t N, typename T> using fill_t = typename kumi::result::fill<N, T>::type;
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";
}