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 multiple_occurrences</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="../../program_options/reference.html#header.boost.program_options.errors_hpp" title="Header <boost/program_options/errors.hpp>"> 10<link rel="prev" href="invalid_syntax.html" title="Class invalid_syntax"> 11<link rel="next" href="multiple_values.html" title="Class multiple_values"> 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="invalid_syntax.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../program_options/reference.html#header.boost.program_options.errors_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="multiple_values.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 25</div> 26<div class="refentry"> 27<a name="boost.program_options.multiple_occurrences"></a><div class="titlepage"></div> 28<div class="refnamediv"> 29<h2><span class="refentrytitle">Class multiple_occurrences</span></h2> 30<p>boost::program_options::multiple_occurrences</p> 31</div> 32<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> 33<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="../../program_options/reference.html#header.boost.program_options.errors_hpp" title="Header <boost/program_options/errors.hpp>">boost/program_options/errors.hpp</a>> 34 35</span> 36<span class="keyword">class</span> <a class="link" href="multiple_occurrences.html" title="Class multiple_occurrences">multiple_occurrences</a> <span class="special">:</span> 37 <span class="keyword">public</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">program_options</span><span class="special">::</span><span class="identifier">error_with_option_name</span> 38<span class="special">{</span> 39<span class="keyword">public</span><span class="special">:</span> 40 <span class="comment">// <a class="link" href="multiple_occurrences.html#boost.program_options.multiple_occurrencesconstruct-copy-destruct">construct/copy/destruct</a></span> 41 <a class="link" href="multiple_occurrences.html#id-1_3_31_9_5_1_1_11_4-bb"><span class="identifier">multiple_occurrences</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> 42 <a class="link" href="multiple_occurrences.html#id-1_3_31_9_5_1_1_11_5-bb"><span class="special">~</span><span class="identifier">multiple_occurrences</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> 43<span class="special">}</span><span class="special">;</span></pre></div> 44<div class="refsect1"> 45<a name="id-1.3.31.9.6.13.4"></a><h2>Description</h2> 46<p>Class thrown when there are several occurrences of an option, but user called a method which cannot return them all. </p> 47<div class="refsect2"> 48<a name="id-1.3.31.9.6.13.4.3"></a><h3> 49<a name="boost.program_options.multiple_occurrencesconstruct-copy-destruct"></a><code class="computeroutput">multiple_occurrences</code> 50 public 51 construct/copy/destruct</h3> 52<div class="orderedlist"><ol class="orderedlist" type="1"> 53<li class="listitem"><pre class="literallayout"><a name="id-1_3_31_9_5_1_1_11_4-bb"></a><span class="identifier">multiple_occurrences</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li> 54<li class="listitem"><pre class="literallayout"><a name="id-1_3_31_9_5_1_1_11_5-bb"></a><span class="special">~</span><span class="identifier">multiple_occurrences</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li> 55</ol></div> 56</div> 57</div> 58</div> 59<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 60<td align="left"></td> 61<td align="right"><div class="copyright-footer">Copyright © 2002-2004 Vladimir Prus<p>Distributed under the Boost Software License, Version 1.0. 62 (See accompanying file <code class="filename">LICENSE_1_0.txt</code> or copy at 63 <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 64 </p> 65</div></td> 66</tr></table> 67<hr> 68<div class="spirit-nav"> 69<a accesskey="p" href="invalid_syntax.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../program_options/reference.html#header.boost.program_options.errors_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="multiple_values.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 70</div> 71</body> 72</html> 73