3 <meta http-equiv=
"Content-Type" content=
"text/html; charset=US-ASCII">
4 <title>Relationships Between Two Types
</title>
5 <link rel=
"stylesheet" href=
"../../../../../../../doc/src/boostbook.css" type=
"text/css">
6 <meta name=
"generator" content=
"DocBook XSL Stylesheets V1.77.1">
7 <link rel=
"home" href=
"../../../index.html" title=
"Chapter 1. Boost.TypeTraits">
8 <link rel=
"up" href=
"../value_traits.html" title=
"Type Traits that Describe the Properties of a Type">
9 <link rel=
"prev" href=
"properties.html" title=
"General Type Properties">
10 <link rel=
"next" href=
"operators.html" title=
"Operator Type Traits">
12 <body bgcolor=
"white" text=
"black" link=
"#0000FF" vlink=
"#840084" alink=
"#0000FF">
13 <table cellpadding=
"2" width=
"100%"><tr>
14 <td valign=
"top"><img alt=
"Boost C++ Libraries" width=
"277" height=
"86" src=
"../../../../../../../boost.png"></td>
15 <td align=
"center"><a href=
"../../../../../../../index.html">Home
</a></td>
16 <td align=
"center"><a href=
"../../../../../../../libs/libraries.htm">Libraries
</a></td>
17 <td align=
"center"><a href=
"http://www.boost.org/users/people.html">People
</a></td>
18 <td align=
"center"><a href=
"http://www.boost.org/users/faq.html">FAQ
</a></td>
19 <td align=
"center"><a href=
"../../../../../../../more/index.htm">More
</a></td>
22 <div class=
"spirit-nav">
23 <a accesskey=
"p" href=
"properties.html"><img src=
"../../../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../value_traits.html"><img src=
"../../../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../../../index.html"><img src=
"../../../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"operators.html"><img src=
"../../../../../../../doc/src/images/next.png" alt=
"Next"></a>
26 <div class=
"titlepage"><div><div><h4 class=
"title">
27 <a name=
"boost_typetraits.category.value_traits.relate"></a><a class=
"link" href=
"relate.html" title=
"Relationships Between Two Types">Relationships
29 </h4></div></div></div>
31 These templates determine the whether there is a relationship between two
35 <span class=
"bold"><strong>Synopsis:
</strong></span>
37 <pre class=
"programlisting"><span class=
"keyword">template
</span> <span class=
"special"><</span><span class=
"keyword">class
</span> <span class=
"identifier">Base
</span><span class=
"special">,
</span> <span class=
"keyword">class
</span> <span class=
"identifier">Derived
</span><span class=
"special">></span>
38 <span class=
"keyword">struct
</span> <a class=
"link" href=
"../../reference/is_base_of.html" title=
"is_base_of">is_base_of
</a><span class=
"special">;
</span>
40 <span class=
"keyword">template
</span> <span class=
"special"><</span><span class=
"keyword">class
</span> <span class=
"identifier">Base
</span><span class=
"special">,
</span> <span class=
"keyword">class
</span> <span class=
"identifier">Derived
</span><span class=
"special">></span>
41 <span class=
"keyword">struct
</span> <a class=
"link" href=
"../../reference/is_virtual_base_of.html" title=
"is_virtual_base_of">is_virtual_base_of
</a><span class=
"special">;
</span>
43 <span class=
"keyword">template
</span> <span class=
"special"><</span><span class=
"keyword">class
</span> <span class=
"identifier">From
</span><span class=
"special">,
</span> <span class=
"keyword">class
</span> <span class=
"identifier">To
</span><span class=
"special">></span>
44 <span class=
"keyword">struct
</span> <a class=
"link" href=
"../../reference/is_convertible.html" title=
"is_convertible">is_convertible
</a><span class=
"special">;
</span>
46 <span class=
"keyword">template
</span> <span class=
"special"><</span><span class=
"keyword">class
</span> <span class=
"identifier">T
</span><span class=
"special">,
</span> <span class=
"keyword">class
</span> <span class=
"identifier">U
</span><span class=
"special">></span>
47 <span class=
"keyword">struct
</span> <a class=
"link" href=
"../../reference/is_same.html" title=
"is_same">is_same
</a><span class=
"special">;
</span>
50 <table xmlns:
rev=
"http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width=
"100%"><tr>
51 <td align=
"left"></td>
52 <td align=
"right"><div class=
"copyright-footer">Copyright
© 2000,
2011 Adobe Systems Inc, David Abrahams,
53 Frederic Bron, Steve Cleary, Beman Dawes, Aleksey Gurtovoy, Howard Hinnant,
54 Jesse Jones, Mat Marcus, Itay Maman, John Maddock, Alexander Nasonov, Thorsten
55 Ottosen, Roman Perepelitsa, Robert Ramey, Jeremy Siek, Robert Stewart and Steven
57 Distributed under the Boost Software License, Version
1.0. (See accompanying
58 file LICENSE_1_0.txt or copy at
<a href=
"http://www.boost.org/LICENSE_1_0.txt" target=
"_top">http://www.boost.org/LICENSE_1_0.txt
</a>)
63 <div class=
"spirit-nav">
64 <a accesskey=
"p" href=
"properties.html"><img src=
"../../../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../value_traits.html"><img src=
"../../../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../../../index.html"><img src=
"../../../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"operators.html"><img src=
"../../../../../../../doc/src/images/next.png" alt=
"Next"></a>