Creates a sub-tuple of rvalue references to elements of a given tuple as specified by a half-range.
- Template Parameters
-
Begin | is an inclusive index of a first element to include in the created tuple. |
End | is an exclusive index of a first (pseudo-) element beyond the range of elements to include in the created tuple. |
Tpl | is a deducible type of a tuple from which the function extracts the elements. |
- Returns
- A sub-tuple with elements assigned from the elements
[Begin, End)
of tpl
. The created tuple has rvalue reference data members when the source tuple contains rvalues, and otherwise has lvalue reference data members.
- See also
- make_subtuple;
subtuple.