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_fundamental

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

Inherits: If T is a (possibly cv-qualified) fundamental type then inherits from true_type, otherwise inherits from false_type. Fundamental types include integral, floating point and void types (see also is_integral, is_floating_point and is_void)

C++ Standard Reference: 3.9.1.

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

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

Examples:

is_fundamental<int)> inherits from true_type.

is_fundamental<double const>::type is the type true_type.

is_fundamental<void>::value is an integral constant expression that evaluates to true.

is_fundamental<T>::value_type is the type bool.


PrevUpHomeNext