Retrieves the front of a tuple.
namespace kumi::result
{
template<product_type Tuple>
struct front;
template<product_type Tuple>
using front_t = typename front<Tuple>::type;
}
KUMI_TRIVIAL_NODISCARD constexpr decltype(auto) front(Tuple &&t)
Retrieves the front of a tuple.
Definition: back-front.hpp:38
#include <kumi/tuple.hpp>
#include <iostream>
int main()
{
std::cout << x << "\n";
}
KUMI_TRIVIAL_NODISCARD constexpr decltype(auto) back(Tuple &&t)
Retrieves the back of a tuple.
Definition: back-front.hpp:67
Fixed-size collection of heterogeneous values.
Definition: tuple.hpp:35