static assert(is(Unshared!int == int)); static assert(is(Unshared!(const int) == const int)); static assert(is(Unshared!(immutable int) == immutable int)); static assert(is(Unshared!(shared int) == int)); static assert(is(Unshared!(shared(const int)) == const int)); static assert(is(Unshared!(shared(int[])) == shared(int)[]));
Removes shared qualifier, if any, from type T.
Note that while immutable is implicitly shared, it is unaffected by Unshared. Only explict shared is removed.