P99

◆ P99_ADESIGNATED

#define P99_ADESIGNATED (   VAR,
 
)    P99_DESIGNATED(VAR, P99_ACCESSORS(, N))

Expand to an array initializer copying array VAR for N positions.

This can be used to initialize an array with a designated initializer that is derived from another array.

double B[] = P99_ADESIGNATED(A, 3);

Would initialize B to be an array of 3 double that are copies of the first three values of A.

Definition at line 267 of file p99_map.h.

P99_ADESIGNATED
#define P99_ADESIGNATED(VAR, N)
Expand to an array initializer copying array VAR for N positions.
Definition: p99_map.h:267