Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

is_complex

template <class T>
struct is_complex : public true_type-or-false_type {};

Inherits: If T is a complex number type then true (of type std::complex<U> for some type U), otherwise false.

C++ Standard Reference: 26.2.

Compiler Compatibility: All current compilers are supported by this trait.

Header: #include <boost/type_traits/is_complex.hpp> or #include <boost/type_traits.hpp>


PrevUpHomeNext