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


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;