Cursor.isAnonymous

Determine whether the given cursor represents an anonymous record declaration.

The cursor must be a declaration and either a struct or union.

Determines whether this field is a representative for an anonymous struct or union. Such fields are unnamed and are implicitly generated by the implementation to store the data for the anonymous union or struct.

If the following is declared inside a struct.

struct Cursor
@property const @trusted scope
bool
isAnonymous
()

Examples

union {
    int x;
    char y;
};

Meta