...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
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>