This is a small helper useful for adapting templated code where template
parameter can possibly be deduced as const or immutable. Using this type
directly in implementation will result in unmodifiable variables which isn't
always wanted.
voidfoo(Element)(Element[] buf)
{
// this causes an error if element// gets deduced as constElementtmp;
tmp = Element.init;
// this is okUnqual!(Element) tmp;
tmp = Element.init;
}
Strips top-most type qualifier.
This is a small helper useful for adapting templated code where template parameter can possibly be deduced as const or immutable. Using this type directly in implementation will result in unmodifiable variables which isn't always wanted.