hasCompleted

Tests if something has completed method.

template hasCompleted (
T
) {
enum bool hasCompleted;
}

Examples

1 struct A
2 {
3     void completed();
4 }
5 
6 struct B
7 {
8     void _completed();
9 }
10 
11 static assert(hasCompleted!A);
12 static assert(!hasCompleted!B);