1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<html> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5<title>Class template make_variant_over</title> 6<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css"> 7<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 8<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> 9<link rel="up" href="../variant/reference.html#header.boost.variant.variant_hpp" title="Header <boost/variant/variant.hpp>"> 10<link rel="prev" href="hash_value_1_3_46_5_4_1_4.html" title="Function template hash_value"> 11<link rel="next" href="make_recursive_variant.html" title="Class template make_recursive_variant"> 12</head> 13<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 14<table cellpadding="2" width="100%"><tr> 15<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td> 16<td align="center"><a href="../../../index.html">Home</a></td> 17<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td> 18<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 19<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 20<td align="center"><a href="../../../more/index.htm">More</a></td> 21</tr></table> 22<hr> 23<div class="spirit-nav"> 24<a accesskey="p" href="hash_value_1_3_46_5_4_1_4.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../variant/reference.html#header.boost.variant.variant_hpp"><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="make_recursive_variant.html"><img src="../../../doc/src/images/next.png" alt="Next"></a> 25</div> 26<div class="refentry"> 27<a name="boost.make_variant_over"></a><div class="titlepage"></div> 28<div class="refnamediv"> 29<h2><span class="refentrytitle">Class template make_variant_over</span></h2> 30<p>boost::make_variant_over — Exposes a <code class="computeroutput">variant</code> whose bounded types are the 31 elements of the given type sequence.</p> 32</div> 33<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> 34<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../variant/reference.html#header.boost.variant.variant_hpp" title="Header <boost/variant/variant.hpp>">boost/variant/variant.hpp</a>> 35 36</span><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Sequence<span class="special">></span> 37<span class="keyword">class</span> <a class="link" href="make_variant_over.html" title="Class template make_variant_over">make_variant_over</a> <span class="special">{</span> 38<span class="keyword">public</span><span class="special">:</span> 39 <span class="comment">// types</span> 40 <span class="keyword">typedef</span> <span class="identifier">variant</span><span class="special"><</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <span class="special">></span> <a name="boost.make_variant_over.type"></a><span class="identifier">type</span><span class="special">;</span> 41<span class="special">}</span><span class="special">;</span></pre></div> 42<div class="refsect1"> 43<a name="id-1.3.46.5.5.7.4"></a><h2>Description</h2> 44<p><code class="computeroutput">type</code> has behavior equivalent in every respect to 45 <code class="computeroutput"><a class="link" href="variant.html" title="Class template variant">variant</a>< Sequence[0], Sequence[1], ... ></code> 46 (where <code class="computeroutput">Sequence[<span class="emphasis"><em>i</em></span>]</code> denotes the 47 <span class="emphasis"><em>i</em></span>-th element of <code class="computeroutput">Sequence</code>), except 48 that no upper limit is imposed on the number of types.</p> 49<p><span class="bold"><strong>Notes</strong></span>:</p> 50<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 51<li class="listitem"> 52<code class="computeroutput">Sequence</code> must meet the requirements of 53 MPL's <span class="emphasis"><em>Sequence</em></span> 54 concept.</li> 55<li class="listitem">Due to standard conformance problems in several compilers, 56 <code class="computeroutput">make_variant_over</code> may not be supported on your 57 compiler. See 58 <code class="computeroutput"><a class="link" href="../BOOST_VARIANT_1_3_46_5_3_7.html" title="Macro BOOST_VARIANT_NO_TYPE_SEQUENCE_SUPPORT">BOOST_VARIANT_NO_TYPE_SEQUENCE_SUPPORT</a></code> 59 for more information.</li> 60</ul></div> 61</div> 62</div> 63<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 64<td align="left"></td> 65<td align="right"><div class="copyright-footer">Copyright © 2002, 2003 Eric Friedman, Itay Maman<br>Copyright © 2014-2020 Antony Polukhin<p>Distributed under the Boost Software License, Version 1.0. 66 (See accompanying file <code class="filename">LICENSE_1_0.txt</code> or copy at 67 <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 68 </p> 69</div></td> 70</tr></table> 71<hr> 72<div class="spirit-nav"> 73<a accesskey="p" href="hash_value_1_3_46_5_4_1_4.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../variant/reference.html#header.boost.variant.variant_hpp"><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="make_recursive_variant.html"><img src="../../../doc/src/images/next.png" alt="Next"></a> 74</div> 75</body> 76</html> 77