isDisposable

Tests if something is a Disposable.

template isDisposable (
T
) {}

Members

Variables

isDisposable
enum bool isDisposable;
Undocumented in source.

Examples

struct A
{
    void dispose()
    {
    }
}

class B
{
    void dispose()
    {
    }
}

interface C
{
    void dispose();
}

static assert(isDisposable!A);
static assert(isDisposable!B);
static assert(isDisposable!C);

Meta