ocean.meta.types.Qualifiers

Templates to define types with modified qualifiers based on some input types.

Many of helper templates here have been added because of D1 to D2 migration to hide behind them qualifiers not supported in D1 (const, immutable, inout). Others, like Unqual, are generally useful even outside of migration context.

NB: because this module is often used as purely compile-time dependency it used built-in asserts instead of ocean.core.Test to reduce amount of cyclic imports. ocean.meta modules in general are not supposed to import anything outside of ocean.meta.

Members

Aliases

cstring
alias cstring = const(char)[]
Undocumented in source.
istring
alias istring = immutable(char)[]

Convenience string type aliases.

mstring
alias mstring = char[]
Undocumented in source.

Templates

Unqual
template Unqual(T)

Strips top-most type qualifier.

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).