isEventContainer

Judge StateTransitor's EventContainer

template isEventContainer (
Container
) {
enum bool isEventContainer;
enum bool isEventContainer;
}

Examples

1 enum E {a, b, c}
2 static assert(isEventContainer!(E[]));
3 static assert(isEventContainer!(SList!E));
4 static assert(isEventContainer!(DList!E));
5 static assert(isEventContainer!(Array!E));

Meta