Constructs a tuple of references to the arguments in args suitable for forwarding as an argument to a function. The tuple has rvalue reference data members when rvalues are used as arguments, and otherwise has lvalue reference data members.
#include <kumi/kumi.hpp>
#include <iostream>
#include <vector>
#include <string>
template<typename Data>
std::vector<std::string> build(Data d)
{
);
}
int main()
{
for(auto const& s : v)
std::cout << s << "\n";
}
constexpr auto forward_as_tuple(Ts &&... ts) -> tuple< Ts &&... >
Creates a kumi::tuple of forwarding references to its arguments.
Definition tuple.hpp:451
constexpr decltype(auto) get(record< Ts... > &&r) noexcept
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition record.hpp:506