Loading...
Searching...
No Matches
Go to the documentation of this file.
7#define ARRLEN(x) (sizeof(x) / sizeof((x)[0]))
9#define MYMIN(a, b) ((a) < (b) ? (a) : (b))
11#define MYMAX(a, b) ((a) > (b) ? (a) : (b))
14#define CONTAINS(c, v) (std::find((c).begin(), (c).end(), (v)) != (c).end())
17#define SORT_AND_UNIQUE(c) do { \
18 std::sort((c).begin(), (c).end()); \
19 (c).erase(std::unique((c).begin(), (c).end()), (c).end()); \
26#define DISABLE_CLASS_COPY(C) \
27 C(const C &) = delete; \
28 C &operator=(const C &) = delete;
32#define ALLOW_CLASS_MOVE(C) \
33 C(C &&other) = default; \
34 C &operator=(C &&) = default;