chsvlib
chsv helper source code

◆ forward_subtuple()

constexpr auto Chusov::Memory::forward_subtuple ( Tpl &&  tpl) -> decltype(Implementation::subtuple<Begin, End>::forward(std::forward<Tpl>(tpl)))
constexprnoexcept

Creates a sub-tuple of rvalue references to elements of a given tuple as specified by a half-range.

Template Parameters
Beginis an inclusive index of a first element to include in the created tuple.
Endis an exclusive index of a first (pseudo-) element beyond the range of elements to include in the created tuple.
Tplis 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.