1 | <?xml version="1.0" encoding="utf-8" ?> |
---|
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
4 | <head> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
6 | <meta name="generator" content="Docutils 0.3.6: http://docutils.sourceforge.net/" /> |
---|
7 | <title>The MPL Reference Manual: not_</title> |
---|
8 | <link rel="stylesheet" href="../style.css" type="text/css" /> |
---|
9 | </head> |
---|
10 | <body class="docframe refmanual"> |
---|
11 | <table class="header"><tr class="header"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./or.html" class="navigation-link">Prev</a> <a href="./bitwise-operations.html" class="navigation-link">Next</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./or.html" class="navigation-link">Back</a> Along</span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./logical-operations.html" class="navigation-link">Up</a> <a href="../refmanual.html" class="navigation-link">Home</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./refmanual_toc.html" class="navigation-link">Full TOC</a></span></td> |
---|
12 | <td class="header-group page-location"><a href="../refmanual.html" class="navigation-link">Front Page</a> / <a href="./metafunctions.html" class="navigation-link">Metafunctions</a> / <a href="./logical-operations.html" class="navigation-link">Logical Operations</a> / <a href="./not.html" class="navigation-link">not_</a></td> |
---|
13 | </tr></table><div class="header-separator"></div> |
---|
14 | <div class="section" id="not"> |
---|
15 | <h1><a class="toc-backref" href="./logical-operations.html#id478" name="not">not_</a></h1> |
---|
16 | <div class="section" id="logical-not-synopsis"> |
---|
17 | <h3><a class="subsection-title" href="#synopsis" name="synopsis">Synopsis</a></h3> |
---|
18 | <pre class="literal-block"> |
---|
19 | template< |
---|
20 | typename F |
---|
21 | > |
---|
22 | struct <a href="./not.html" class="identifier">not_</a> |
---|
23 | { |
---|
24 | typedef <em>unspecified</em> type; |
---|
25 | }; |
---|
26 | </pre> |
---|
27 | </div> |
---|
28 | <div class="section" id="logical-not-description"> |
---|
29 | <h3><a class="subsection-title" href="#description" name="description">Description</a></h3> |
---|
30 | <p>Returns the result of <em>logical not</em> (<tt class="literal"><span class="pre">!</span></tt>) operation on its argument.</p> |
---|
31 | </div> |
---|
32 | <div class="section" id="logical-not-header"> |
---|
33 | <h3><a class="subsection-title" href="#header" name="header">Header</a></h3> |
---|
34 | <pre class="literal-block"> |
---|
35 | #include <<a href="../../../../boost/mpl/not.hpp" class="header">boost/mpl/not.hpp</a>> |
---|
36 | #include <<a href="../../../../boost/mpl/logical.hpp" class="header">boost/mpl/logical.hpp</a>> |
---|
37 | </pre> |
---|
38 | </div> |
---|
39 | <div class="section" id="logical-not-parameters"> |
---|
40 | <h3><a class="subsection-title" href="#parameters" name="parameters">Parameters</a></h3> |
---|
41 | <table border="1" class="table"> |
---|
42 | <colgroup> |
---|
43 | <col width="17%" /> |
---|
44 | <col width="30%" /> |
---|
45 | <col width="53%" /> |
---|
46 | </colgroup> |
---|
47 | <thead valign="bottom"> |
---|
48 | <tr><th>Parameter</th> |
---|
49 | <th>Requirement</th> |
---|
50 | <th>Description</th> |
---|
51 | </tr> |
---|
52 | </thead> |
---|
53 | <tbody valign="top"> |
---|
54 | <tr><td><tt class="literal"><span class="pre">F</span></tt></td> |
---|
55 | <td>Nullary <a class="reference" href="./metafunction.html">Metafunction</a></td> |
---|
56 | <td>Operation's argument.</td> |
---|
57 | </tr> |
---|
58 | </tbody> |
---|
59 | </table> |
---|
60 | </div> |
---|
61 | <div class="section" id="logical-not-expression-semantics"> |
---|
62 | <h3><a class="subsection-title" href="#expression-semantics" name="expression-semantics">Expression semantics</a></h3> |
---|
63 | <p>For arbitrary nullary <a class="reference" href="./metafunction.html">Metafunction</a> <tt class="literal"><span class="pre">f</span></tt>:</p> |
---|
64 | <pre class="literal-block"> |
---|
65 | typedef <a href="./not.html" class="identifier">not_</a><f>::type r; |
---|
66 | </pre> |
---|
67 | <table class="field-list" frame="void" rules="none"> |
---|
68 | <col class="field-name" /> |
---|
69 | <col class="field-body" /> |
---|
70 | <tbody valign="top"> |
---|
71 | <tr class="field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference" href="./integral-constant.html">Integral Constant</a>.</td> |
---|
72 | </tr> |
---|
73 | <tr class="field"><th class="field-name">Semantics:</th><td class="field-body"><p class="first">Equivalent to</p> |
---|
74 | <pre class="last literal-block"> |
---|
75 | typedef <a href="./bool.html" class="identifier">bool_</a>< (!f::type::value) > r; |
---|
76 | </pre> |
---|
77 | </td> |
---|
78 | </tr> |
---|
79 | </tbody> |
---|
80 | </table> |
---|
81 | <!-- .......................................................................... --> |
---|
82 | <pre class="literal-block"> |
---|
83 | typedef <a href="./not.html" class="identifier">not_</a><f> r; |
---|
84 | </pre> |
---|
85 | <table class="field-list" frame="void" rules="none"> |
---|
86 | <col class="field-name" /> |
---|
87 | <col class="field-body" /> |
---|
88 | <tbody valign="top"> |
---|
89 | <tr class="field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference" href="./integral-constant.html">Integral Constant</a>.</td> |
---|
90 | </tr> |
---|
91 | <tr class="field"><th class="field-name">Semantics:</th><td class="field-body"><p class="first">Equivalent to</p> |
---|
92 | <pre class="last literal-block"> |
---|
93 | struct r : <a href="./not.html" class="identifier">not_</a><f>::type {}; |
---|
94 | </pre> |
---|
95 | </td> |
---|
96 | </tr> |
---|
97 | </tbody> |
---|
98 | </table> |
---|
99 | </div> |
---|
100 | <div class="section" id="logical-not-example"> |
---|
101 | <h3><a class="subsection-title" href="#example" name="example">Example</a></h3> |
---|
102 | <pre class="literal-block"> |
---|
103 | <a href="./assert-not.html" class="identifier">BOOST_MPL_ASSERT_NOT</a>(( <a href="./not.html" class="identifier">not_</a>< true_ > )); |
---|
104 | <a href="./assert.html" class="identifier">BOOST_MPL_ASSERT</a>(( <a href="./not.html" class="identifier">not_</a>< false_ > )); |
---|
105 | </pre> |
---|
106 | </div> |
---|
107 | <div class="section" id="logical-not-see-also"> |
---|
108 | <h3><a class="subsection-title" href="#see-also" name="see-also">See also</a></h3> |
---|
109 | <p><a class="reference" href="./metafunctions.html">Metafunctions</a>, <a class="reference" href="./logical-operations.html">Logical Operations</a>, <a class="refentry reference" href="./and.html"><tt class="refentry literal"><span class="pre">and_</span></tt></a>, <a class="refentry reference" href="./or.html"><tt class="refentry literal"><span class="pre">or_</span></tt></a></p> |
---|
110 | <!-- modtime: November 10, 2004 04:37:01 +0000 --> |
---|
111 | </div> |
---|
112 | </div> |
---|
113 | |
---|
114 | <div class="footer-separator"></div> |
---|
115 | <table class="footer"><tr class="footer"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./or.html" class="navigation-link">Prev</a> <a href="./bitwise-operations.html" class="navigation-link">Next</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./or.html" class="navigation-link">Back</a> Along</span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./logical-operations.html" class="navigation-link">Up</a> <a href="../refmanual.html" class="navigation-link">Home</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./refmanual_toc.html" class="navigation-link">Full TOC</a></span></td> |
---|
116 | </tr></table></body> |
---|
117 | </html> |
---|