Boost C++ Libraries 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.


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.

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