Remove the first (if any) element of t.
- Parameters
-
- Returns
- A product type composed of all elements of t except its first. Has no effect on empty product types.
On record types, this function operates on elements as if they were ordered. The considered order is the order of declaration.
Helper type
namespace kumi::result
{
template<product_type T>
}
constexpr auto pop_front(T &&t)
Remove the first (if any) element of t.
Definition push_pop.hpp:82
Computes the return type of a call to kumi::pop_front
Examples:
Tuple:
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
std::cout << t << "\n";
}
Fixed-size collection of heterogeneous values.
Definition tuple.hpp:33
Record:
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
using namespace kumi::literals;
std::cout << r << "\n";
}
Fixed-size collection of heterogeneous tagged fields, tags are unique.
Definition record.hpp:36