11namespace hi::inline
v1 {
13template<
std::size_t I,
typename FirstArg,
typename... Args>
14constexpr decltype(
auto) get_argument_impl(FirstArg &&first_arg, Args &&...args)
noexcept
16 if constexpr (I == 0) {
17 return std::forward<FirstArg>(first_arg);
19 return get_argument_impl<I - 1>(std::forward<Args>(args)...);
24constexpr decltype(
auto) get_argument(Args &&...args)
noexcept
26 static_assert(I <
sizeof...(Args),
"Index to high for number of arguments");
27 return get_argument_impl<I>(std::forward<Args>(args)...);
30template<
typename... Args>
31constexpr decltype(
auto) get_last_argument(Args &&...args)
noexcept
33 return get_argument_impl<
sizeof...(Args) - 1>(std::forward<Args>(args)...);
DOXYGEN BUG.
Definition algorithm.hpp:15