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.78.1">
7 <link rel="home" href="../../../index.html" title="Boost.Regex 5.0.0">
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">
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>
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>
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>
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>:
39 <div class="informaltable"><table class="table">
58 Assertion / Note / Pre- / Post-condition
76 Default constructor (must be trivial).
93 Copy constructor (must be trivial).
110 Assignment operator (must be trivial).
127 true if c1 has the same value as c2.
144 true if c1 and c2 are not equal.
161 true if the value of c1 is less than c2.
178 true if the value of c1 is greater than c2.
195 true if c1 is less than or equal to c2.
212 true if c1 is greater than or equal to c2.
229 charT must be convertible to an integral type.
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
252 charT must be constructable from an integral type.
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 © 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>)
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>