Concatenates product types in a single one.
- Parameters
-
| ts | Product types to concatenate |
- Returns
- A product type made of all element of all input product types in order.
- Note
- This function does not take part in overload resolution if the input product types do not follow the same semantic.
- See also
- concepts::follows_same_semantic
Helper type
namespace kumi::result
{
template<product_type... Ts>
struct cat;
template<product_type... Ts>
using cat_t =
typename cat<Ts...>::type;
}
constexpr auto cat(Ts &&... ts)
Concatenates product types in a single one.
Definition cat.hpp:43
Computes the return type of a call to kumi::cat
Examples:
Tuple:
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
std::cout << a << " " << b << " " << c << "\n";
std::cout << abc << "\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 << a << " " << b << " " << c << "\n";
std::cout << abc << "\n";
}
Fixed-size collection of heterogeneous tagged fields, tags are unique.
Definition record.hpp:36