Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.


D header file for interaction with C++ std::type_traits.
Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)
Manu Evans
struct integral_constant(T, T Val);
enum T value;
alias value_type = T;
alias type = typeof(this);
template bool_constant(bool b)
alias true_type = integral_constant!(bool, true).integral_constant;
alias false_type = integral_constant!(bool, false).integral_constant;
struct is_empty(T);
enum bool value;
alias value_type = bool;
alias type = integral_constant!(bool, value);