#include "global.h"
#include <cassert>
#include <cstring>
#include <iterator>
#include <vector>
Go to the source code of this file.
|
| #define | MSORT(LIMIT, FIRST, LAST, RANK, LESS) |
| |
◆ MSORT
| #define MSORT |
( |
| LIMIT, |
|
|
| FIRST, |
|
|
| LAST, |
|
|
| RANK, |
|
|
| LESS ) |
Value: do { \
const size_t N = LAST - FIRST; \
if (N <= (size_t) (LIMIT)) \
sort (FIRST, LAST, LESS); \
else \
rsort (FIRST, LAST,
RANK); \
} while (0)
Definition at line 173 of file radix.hpp.
173#define MSORT(LIMIT, FIRST, LAST, RANK, LESS) \
174 do { \
175 const size_t N = LAST - FIRST; \
176 if (N <= (size_t) (LIMIT)) \
177 sort (FIRST, LAST, LESS); \
178 else \
179 rsort (FIRST, LAST, RANK); \
180 } while (0)