P99

◆ P99_DUPL

#define P99_DUPL (   ...)    P99_PASTE2(P00_DUPL_0_, P99_IS_LT(P99_NARG(__VA_ARGS__), 2))(__VA_ARGS__)

Construct a list that repeats the argument list N times.

The corner cases should work as expected:

  • If N is 0 the empty list is produced.
  • If the argument list is empty, the empty list is produced.
  • If the argument list has just one element which is empty, the result will just be a sequence of N - 1 commas.

Definition at line 90 of file p99_list.h.