Template Function std::get(const TRAP::Math::Vec<4, T>&&)#

Function Documentation#

template<usize I, typename T>
constexpr const T &&std::get(const TRAP::Math::Vec<4, T> &&v) noexcept#

Extracts the Ith element from the vector. I must be an integer value in range [0, 4). This is enforced at compile time!

Parameters:

v – Vector whose contents to extract.

Returns:

A reference to the Ith element of v.