Member predicate ArrayOrVectorAggregateLiteral::hasDesignator
Holds if the position
-th initialization of the array element at elementIndex
in this aggregate initializer uses a designated (e.g., [0] = ...
) rather than
a positional initializer.
For example, in:
int x[] = { [0] = 1, 2 };
[0] = 1
is a designated initializer, thereforehasDesignator(0, 0)
holds.2
is a positional initializer forx[1]
, thereforehasDesignator(1, 1)
does not hold.
predicate hasDesignator(int elementIndex, int position)