Trivial wrapper for a cast from any array to an array of immutable elements (e.g. from any string to an immutable string), to make code more readable. Its use is only legal if no one else has a reference to the contents of the input array. Cf. std.exception.assumeUnique in Phobos.
Casts an object of one class to another class. Using this function is safer than a plain cast, as it also statically ensures that the variable being cast from is a class or an interface.
Generates delegate that stores specified context as a delegate context pointer and, when called, forwards it to function F as a regular argument.
Helper function to wrap any callable type in a delegate. Most useful when you need to pass function pointer as a delegate argument.
Creates a new array from the elements supplied as function arguments, casting each of them to T.
Explicit cast function -- both from and to types must be specified by the user and are statically ensured to be correct. This extra security can help prevent refactoring errors.
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).
Copyright (c) 2009-2016 dunnhumby Germany GmbH. All rights reserved.
Functions to help with type conversion.