isObserver

Tests if something is Observer.

template isObserver (
T
E
) {}

Members

Variables

isObserver
enum bool isObserver;
Undocumented in source.

Examples

struct TestObserver
{
    void put(int n)
    {
    }

    void completed()
    {
    }

    void failure(Exception e)
    {
    }
}

static assert(isObserver!(TestObserver, int));

Meta