Loading...
Searching...
No Matches
pair.hpp
Go to the documentation of this file.
1
2#pragma once
3
22#include "indep/macro/overload.hpp"
23
24#define BY_PAIR_1(x) x
25#define BY_PAIR_2(x, y) x, y
26#define BY_PAIR_3(x, y, z) BY_PAIR_2(x, y), z
27#define BY_PAIR_4(x, y, z, a) BY_PAIR_2(x, y), BY_PAIR_2(z, a)
28#define BY_PAIR(...) BY_OVERLOAD(BY_PAIR, __VA_ARGS__)