• Foo

    Declaration

    struct Foo(T)CONSTRAINT_MARKER(is(T == int));

    A struct template with constraint

  • Bar

    Declaration

    class Bar(T)CONSTRAINT_MARKER(is(T == int));

    A class template with constraint

  • Baz

    Declaration

    template Baz(T)CONSTRAINT_MARKER(is(T == int))

    A plain template with constraint

  • qux

    Declaration

    void qux(T)(T x)CONSTRAINT_MARKER(is(T == int));

    A function template with constraint