]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/regex/doc/html/boost_regex/ref/concepts/charT_concept.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / regex / doc / html / boost_regex / ref / concepts / charT_concept.html
CommitLineData
7c673cae
FG
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4<title>charT Requirements</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="Boost.Regex 5.1.2">
8<link rel="up" href="../concepts.html" title="Concepts">
9<link rel="prev" href="../concepts.html" title="Concepts">
10<link rel="next" href="traits_concept.html" title="Traits Class Requirements">
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="../concepts.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.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="traits_concept.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h4 class="title">
27<a name="boost_regex.ref.concepts.charT_concept"></a><a class="link" href="charT_concept.html" title="charT Requirements">charT Requirements</a>
28</h4></div></div></div>
29<p>
30 Type <code class="computeroutput"><span class="identifier">charT</span></code> used a template
31 argument to class template <a class="link" href="../basic_regex.html" title="basic_regex"><code class="computeroutput"><span class="identifier">basic_regex</span></code></a>, must have a trivial
32 default constructor, copy constructor, assignment operator, and destructor.
33 In addition the following requirements must be met for objects; <span class="emphasis"><em>c</em></span>
34 of type <code class="computeroutput"><span class="identifier">charT</span></code>, <span class="emphasis"><em>c1</em></span>
35 and <span class="emphasis"><em>c2</em></span> of type <code class="computeroutput"><span class="identifier">charT</span>
36 <span class="keyword">const</span></code>, and <span class="emphasis"><em>i</em></span>
37 of type <code class="computeroutput"><span class="keyword">int</span></code>:
38 </p>
39<div class="informaltable"><table class="table">
40<colgroup>
41<col>
42<col>
43<col>
44</colgroup>
45<thead><tr>
46<th>
47 <p>
48 Expression
49 </p>
50 </th>
51<th>
52 <p>
53 Return type
54 </p>
55 </th>
56<th>
57 <p>
58 Assertion / Note / Pre- / Post-condition
59 </p>
60 </th>
61</tr></thead>
62<tbody>
63<tr>
64<td>
65 <p>
66 charT c
67 </p>
68 </td>
69<td>
70 <p>
71 charT
72 </p>
73 </td>
74<td>
75 <p>
76 Default constructor (must be trivial).
77 </p>
78 </td>
79</tr>
80<tr>
81<td>
82 <p>
83 charT c(c1)
84 </p>
85 </td>
86<td>
87 <p>
88 charT
89 </p>
90 </td>
91<td>
92 <p>
93 Copy constructor (must be trivial).
94 </p>
95 </td>
96</tr>
97<tr>
98<td>
99 <p>
100 c1 = c2
101 </p>
102 </td>
103<td>
104 <p>
105 charT
106 </p>
107 </td>
108<td>
109 <p>
110 Assignment operator (must be trivial).
111 </p>
112 </td>
113</tr>
114<tr>
115<td>
116 <p>
117 c1 == c2
118 </p>
119 </td>
120<td>
121 <p>
122 bool
123 </p>
124 </td>
125<td>
126 <p>
127 true if c1 has the same value as c2.
128 </p>
129 </td>
130</tr>
131<tr>
132<td>
133 <p>
134 c1 != c2
135 </p>
136 </td>
137<td>
138 <p>
139 bool
140 </p>
141 </td>
142<td>
143 <p>
144 true if c1 and c2 are not equal.
145 </p>
146 </td>
147</tr>
148<tr>
149<td>
150 <p>
151 c1 &lt; c2
152 </p>
153 </td>
154<td>
155 <p>
156 bool
157 </p>
158 </td>
159<td>
160 <p>
161 true if the value of c1 is less than c2.
162 </p>
163 </td>
164</tr>
165<tr>
166<td>
167 <p>
168 c1 &gt; c2
169 </p>
170 </td>
171<td>
172 <p>
173 bool
174 </p>
175 </td>
176<td>
177 <p>
178 true if the value of c1 is greater than c2.
179 </p>
180 </td>
181</tr>
182<tr>
183<td>
184 <p>
185 c1 &lt;= c2
186 </p>
187 </td>
188<td>
189 <p>
190 bool
191 </p>
192 </td>
193<td>
194 <p>
195 true if c1 is less than or equal to c2.
196 </p>
197 </td>
198</tr>
199<tr>
200<td>
201 <p>
202 c1 &gt;= c2
203 </p>
204 </td>
205<td>
206 <p>
207 bool
208 </p>
209 </td>
210<td>
211 <p>
212 true if c1 is greater than or equal to c2.
213 </p>
214 </td>
215</tr>
216<tr>
217<td>
218 <p>
219 intmax_t i = c1
220 </p>
221 </td>
222<td>
223 <p>
224 int
225 </p>
226 </td>
227<td>
228 <p>
229 charT must be convertible to an integral type.
230 </p>
231 <p>
232 Note: type charT is not required to support this operation, if
233 the traits class used supports the full Boost-specific interface,
234 rather than the minimal standardised-interface (see traits class
235 requirements below).
236 </p>
237 </td>
238</tr>
239<tr>
240<td>
241 <p>
242 charT c(i);
243 </p>
244 </td>
245<td>
246 <p>
247 charT
248 </p>
249 </td>
250<td>
251 <p>
252 charT must be constructable from an integral type.
253 </p>
254 </td>
255</tr>
256</tbody>
257</table></div>
258</div>
259<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
260<td align="left"></td>
261<td align="right"><div class="copyright-footer">Copyright &#169; 1998-2013 John Maddock<p>
262 Distributed under the Boost Software License, Version 1.0. (See accompanying
263 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>)
264 </p>
265</div></td>
266</tr></table>
267<hr>
268<div class="spirit-nav">
269<a accesskey="p" href="../concepts.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.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="traits_concept.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
270</div>
271</body>
272</html>