std::make_tuple (3) - Linux Manuals
std::make_tuple: std::make_tuple
NAME
std::make_tuple - std::make_tuple
Synopsis
Defined in header <tuple>
template< class... Types > (since C++11)
tuple<VTypes...> make_tuple( Types&&... args ); (constexpr since C++14)
Creates a tuple object, deducing the target type from the types of arguments.
For each Ti in Types..., the corresponding type Vi in VTypes... is std::decay<Ti>::type unless application of std::decay results in std::reference_wrapper<X> for some type X, in which case the deduced type is X&.
Parameters
args - zero or more arguments to construct the tuple from
Return value
A std::tuple object containing the given values, created as if by std::tuple<VTypes...>(std::forward<Types>(t)...).
Possible implementation
Example
// Run this code
Output:
See also
tie (function template)
forward_as_tuple (function template)
tuple_cat (function template)
apply calls a function with a tuple of arguments
(C++17)