~barry/ubuntu/precise/boost1.46/debian-merge

« back to all changes in this revision

Viewing changes to doc/html/boost/xpressive/optional_id1559438.html

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2011-03-13 00:37:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110313003735-r7j6jdk0hkywfzuw
Tags: 1.46.1-1
* New upstream.

* control: Add libboost-random1.46-dev to depends of -all-dev and
  suggests of -dev.  Closes: #615849.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html>
2
 
<head>
3
 
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4
 
<title>Function template optional</title>
5
 
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
 
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
8
 
<link rel="up" href="../../xpressive/reference.html#header.boost.xpressive.regex_primitives_hpp" title="Header &lt;boost/xpressive/regex_primitives.hpp&gt;">
9
 
<link rel="prev" href="range.html" title="Function template range">
10
 
<link rel="next" href="repeat_id1559469.html" title="Function template repeat">
11
 
</head>
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>
20
 
</tr></table>
21
 
<hr>
22
 
<div class="spirit-nav">
23
 
<a accesskey="p" href="range.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../xpressive/reference.html#header.boost.xpressive.regex_primitives_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="repeat_id1559469.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
24
 
</div>
25
 
<div class="refentry">
26
 
<a name="boost.xpressive.optional_id1559438"></a><div class="titlepage"></div>
27
 
<div class="refnamediv">
28
 
<h2><span class="refentrytitle">Function template optional</span></h2>
29
 
<p>boost::xpressive::optional &#8212; Make a sub-expression optional. Equivalent to !as_xpr(expr). </p>
30
 
</div>
31
 
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
32
 
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../xpressive/reference.html#header.boost.xpressive.regex_primitives_hpp" title="Header &lt;boost/xpressive/regex_primitives.hpp&gt;">boost/xpressive/regex_primitives.hpp</a>&gt;
33
 
 
34
 
</span>
35
 
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <a class="link" href="../../Expr.html" title="Concept Expr">Expr</a><span class="special">&gt;</span> 
36
 
  <span class="identifier">proto</span><span class="special">::</span><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_expr</span><span class="special">&lt;</span> <span class="identifier">proto</span><span class="special">::</span><span class="identifier">tag</span><span class="special">::</span><span class="identifier">logical_not</span><span class="special">,</span> <span class="identifier">proto</span><span class="special">::</span><span class="identifier">default_domain</span><span class="special">,</span> <span class="identifier">Expr</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="keyword">const</span> 
37
 
  <span class="identifier">optional</span><span class="special">(</span><span class="identifier">Expr</span> <span class="keyword">const</span> <span class="special">&amp;</span> expr<span class="special">)</span><span class="special">;</span></pre></div>
38
 
<div class="refsect1">
39
 
<a name="id3348257"></a><h2>Description</h2>
40
 
<p>
41
 
</p>
42
 
<div class="variablelist"><table border="0">
43
 
<col align="left" valign="top">
44
 
<tbody><tr>
45
 
<td><p><span class="term">Parameters:</span></p></td>
46
 
<td><div class="variablelist"><table border="0">
47
 
<col align="left" valign="top">
48
 
<tbody><tr>
49
 
<td><p><span class="term"><code class="computeroutput">expr</code></span></p></td>
50
 
<td><p>The sub-expression to make optional. </p></td>
51
 
</tr></tbody>
52
 
</table></div></td>
53
 
</tr></tbody>
54
 
</table></div>
55
 
</div>
56
 
</div>
57
 
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
58
 
<td align="left"></td>
59
 
<td align="right"><div class="copyright-footer">Copyright &#169; 2007 Eric Niebler<p>
60
 
        Distributed under the Boost Software License, Version 1.0. (See accompanying
61
 
        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>)
62
 
      </p>
63
 
</div></td>
64
 
</tr></table>
65
 
<hr>
66
 
<div class="spirit-nav">
67
 
<a accesskey="p" href="range.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../xpressive/reference.html#header.boost.xpressive.regex_primitives_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="repeat_id1559469.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
68
 
</div>
69
 
</body>
70
 
</html>