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.

Relationships Between Two Types

These templates determine the whether there is a relationship between two types:


template <class Base, class Derived>
struct is_base_of;

template <class Base, class Derived>
struct is_virtual_base_of;

template <class From, class To>
struct is_convertible;

template <class T, class U>
struct is_same;