P99

◆ P99_ARE_ORDERED

#define P99_ARE_ORDERED (   OP,
  ... 
)    P00_ARE_ORDERED(OP, P99_NARG(__VA_ARGS__), __VA_ARGS__)

Check if the arguments in the list are ordered according to the operation OP.

Use this as follows:

if (P99_ARE_ORDERED(<=, a, b, c, d, e, f)) {
// all are in order, do something special
} else {
// handle the base case
}
Warning
argument 0 may be evaluated multiple times
argument 1 may be evaluated multiple times
argument 2 may be evaluated multiple times

Definition at line 481 of file p99_for.h.

f
f
Definition: p99_str.h:138
P99_ARE_ORDERED
#define P99_ARE_ORDERED(OP,...)
Check if the arguments in the list are ordered according to the operation OP.
Definition: p99_for.h:481
d
d
Definition: p99_str.h:138