xte::at()

Defined in header <xte/math/at.hpp>

Selects one argument by index.


Definition

template<xte::uz index>
[[nodiscard]] constexpr auto&& at(auto&&... args) noexcept requires(index < sizeof...(args));



Example

static_assert(xte::at<1>(1, '2', 3.0, "4") == '2');
[View in Compiler Explorer]