SyTen

◆ dropDummy() [2/4]

template< typename Type, std::size_t rank > std::array< Type, rank-1 > syten::dropDummy ( std::array< Type, rank > const &  a,
std::size_t  position 
)

Copies a dropping the element at 1-indexed position position.

Parameters
ainput array
positionelement to drop out.
Returns
a new array with all elements copied except for the one at the specified 1-indexed position.

[2, 3, 4, 5], 2 → [2, 4, 5]

References rank(), and SYTEN_ASSERT_DEBUG.

+ Here is the call graph for this function: