Callable object creating a kumi::tuple containing N copies of v.
More...
|
| template<std::size_t N> |
| constexpr fill_t< N > | kumi::fill {} |
Callable object creating a kumi::tuple containing N copies of v.
◆ fill
template<std::size_t N>
|
|
inlineconstexprnodiscardnoexcept |
{
template<std::size_t N, typename V>
constexpr auto fill(V
const& v)
noexcept;
}
constexpr fill_t< N > fill
Definition generate.hpp:161
Main KUMI namespace.
Definition algorithm.hpp:11
- N: Number of replications
- A tuple containing N copies of v
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";
}