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.
Next

Chapter 1. Boost.TypeTraits

various authors

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Table of Contents

Introduction
Background and Tutorial
Type Traits by Category
Type Traits that Describe the Properties of a Type
Categorizing a Type
General Type Properties
Relationships Between Two Types
Type Traits that Transform One Type to Another
Synthesizing Types with Specific Alignments
Decomposing Function Types
User Defined Specializations
Support for Compiler Intrinsics
MPL Interoperability
Examples
An Optimized Version of std::copy
An Optimised Version of std::fill
An Example that Omits Destructor Calls For Types with Trivial Destructors
An improved Version of std::iter_swap
Convert Numeric Types and Enums to double
Alphabetical Reference
add_const
add_cv
add_pointer
add_reference
add_volatile
aligned_storage
alignment_of
decay
extent
floating_point_promotion
function_traits
has_nothrow_assign
has_nothrow_constructor
has_nothrow_copy
has_nothrow_copy_constructor
has_nothrow_default_constructor
has_trivial_assign
has_trivial_constructor
has_trivial_copy
has_trivial_copy_constructor
has_trivial_default_constructor
has_trivial_destructor
has_virtual_destructor
integral_constant
integral_promotion
is_abstract
is_arithmetic
is_array
is_base_of
is_class
is_complex
is_compound
is_const
is_convertible
is_empty
is_enum
is_floating_point
is_function
is_fundamental
is_integral
is_member_function_pointer
is_member_object_pointer
is_member_pointer
is_object
is_pod
is_pointer
is_polymorphic
is_same
is_scalar
is_signed
is_stateless
is_reference
is_union
is_unsigned
is_void
is_volatile
make_signed
make_unsigned
promote
rank
remove_all_extents
remove_const
remove_cv
remove_extent
remove_pointer
remove_reference
remove_volatile
type_with_alignment
Credits

A printer-friendly PDF version of this manual is also available.

Last revised: November 08, 2007 at 09:38:22 +0000


Next