2007-06-08 09:23:23 +00:00
< html >
< head >
2009-12-08 12:42:33 +00:00
< meta http-equiv = "Content-Type" content = "text/html; charset=US-ASCII" >
2007-12-14 10:11:21 +00:00
< title > charT Requirements< / title >
2010-07-08 23:13:28 +00:00
< link rel = "stylesheet" href = "../../../../../../../doc/src/boostbook.css" type = "text/css" >
2010-07-16 09:45:45 +00:00
< meta name = "generator" content = "DocBook XSL Stylesheets V1.74.0" >
2008-12-23 11:46:00 +00:00
< link rel = "home" href = "../../../index.html" title = "Boost.Regex" >
2007-12-14 10:11:21 +00:00
< link rel = "up" href = "../concepts.html" title = "Concepts" >
< link rel = "prev" href = "../concepts.html" title = "Concepts" >
< link rel = "next" href = "traits_concept.html" title = "Traits Class Requirements" >
2007-06-08 09:23:23 +00:00
< / head >
< body bgcolor = "white" text = "black" link = "#0000FF" vlink = "#840084" alink = "#0000FF" >
2007-08-13 17:54:01 +00:00
< table cellpadding = "2" width = "100%" > < tr >
2007-06-08 09:23:23 +00:00
< td valign = "top" > < img alt = "Boost C++ Libraries" width = "277" height = "86" src = "../../../../../../../boost.png" > < / td >
2008-04-11 08:53:54 +00:00
< td align = "center" > < a href = "../../../../../../../index.html" > Home< / a > < / td >
2007-06-08 09:23:23 +00:00
< td align = "center" > < a href = "../../../../../../../libs/libraries.htm" > Libraries< / a > < / td >
2008-07-25 09:28:01 +00:00
< td align = "center" > < a href = "http://www.boost.org/users/people.html" > People< / a > < / td >
< td align = "center" > < a href = "http://www.boost.org/users/faq.html" > FAQ< / a > < / td >
2007-06-08 09:23:23 +00:00
< td align = "center" > < a href = "../../../../../../../more/index.htm" > More< / a > < / td >
2007-08-13 17:54:01 +00:00
< / tr > < / table >
2007-06-08 09:23:23 +00:00
< hr >
< div class = "spirit-nav" >
2010-07-08 23:13:28 +00:00
< 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 >
2007-06-08 09:23:23 +00:00
< / div >
2010-07-16 09:45:45 +00:00
< div class = "section" lang = "en" >
2007-06-08 09:23:23 +00:00
< div class = "titlepage" > < div > < div > < h4 class = "title" >
2008-12-23 11:46:00 +00:00
< a name = "boost_regex.ref.concepts.charT_concept" > < / a > < a class = "link" href = "charT_concept.html" title = "charT Requirements" > charT Requirements< / a >
2007-12-14 10:11:21 +00:00
< / h4 > < / div > < / div > < / div >
2007-06-08 09:23:23 +00:00
< p >
2007-12-14 10:11:21 +00:00
Type < code class = "computeroutput" > < span class = "identifier" > charT< / span > < / code > used a template
2008-12-23 11:46:00 +00:00
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
2007-06-08 09:23:23 +00:00
default constructor, copy constructor, assignment operator, and destructor.
In addition the following requirements must be met for objects; < span class = "emphasis" > < em > c< / em > < / span >
2007-12-14 10:11:21 +00:00
of type < code class = "computeroutput" > < span class = "identifier" > charT< / span > < / code > , < span class = "emphasis" > < em > c1< / em > < / span >
and < span class = "emphasis" > < em > c2< / em > < / span > of type < code class = "computeroutput" > < span class = "identifier" > charT< / span >
< span class = "keyword" > const< / span > < / code > , and < span class = "emphasis" > < em > i< / em > < / span >
of type < code class = "computeroutput" > < span class = "keyword" > int< / span > < / code > :
2007-06-08 09:23:23 +00:00
< / p >
< div class = "informaltable" > < table class = "table" >
< colgroup >
< col >
< col >
< col >
< / colgroup >
< thead > < tr >
< th >
2010-07-08 23:13:28 +00:00
< p >
Expression
< / p >
2007-06-08 09:23:23 +00:00
< / th >
< th >
2010-07-08 23:13:28 +00:00
< p >
Return type
< / p >
2007-06-08 09:23:23 +00:00
< / th >
< th >
2010-07-08 23:13:28 +00:00
< p >
Assertion / Note / Pre- / Post-condition
< / p >
2007-06-08 09:23:23 +00:00
< / th >
< / tr > < / thead >
< tbody >
< tr >
< td >
2010-07-08 23:13:28 +00:00
< p >
charT c
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
charT
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
Default constructor (must be trivial).
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< / tr >
< tr >
< td >
2010-07-08 23:13:28 +00:00
< p >
charT c(c1)
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
charT
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
Copy constructor (must be trivial).
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< / tr >
< tr >
< td >
2010-07-08 23:13:28 +00:00
< p >
c1 = c2
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
charT
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
Assignment operator (must be trivial).
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< / tr >
< tr >
< td >
2010-07-08 23:13:28 +00:00
< p >
c1 == c2
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
bool
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
true if c1 has the same value as c2.
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< / tr >
< tr >
< td >
2010-07-08 23:13:28 +00:00
< p >
c1 != c2
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
bool
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
true if c1 and c2 are not equal.
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< / tr >
< tr >
< td >
2010-07-08 23:13:28 +00:00
< p >
c1 < c2
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
bool
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
true if the value of c1 is less than c2.
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< / tr >
< tr >
< td >
2010-07-08 23:13:28 +00:00
< p >
c1 > c2
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
bool
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
true if the value of c1 is greater than c2.
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< / tr >
< tr >
< td >
2010-07-08 23:13:28 +00:00
< p >
c1 < = c2
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
bool
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
true if c1 is less than or equal to c2.
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< / tr >
< tr >
< td >
2010-07-08 23:13:28 +00:00
< p >
c1 > = c2
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
bool
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
true if c1 is greater than or equal to c2.
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< / tr >
< tr >
< td >
2010-07-08 23:13:28 +00:00
< p >
intmax_t i = c1
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
int
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
charT must be convertible to an integral type.
< / p >
< p >
Note: type charT is not required to support this operation, if
the traits class used supports the full Boost-specific interface,
rather than the minimal standardised-interface (see traits class
requirements below).
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< / tr >
< tr >
< td >
2010-07-08 23:13:28 +00:00
< p >
charT c(i);
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
charT
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< td >
2010-07-08 23:13:28 +00:00
< p >
charT must be constructable from an integral type.
< / p >
2007-06-08 09:23:23 +00:00
< / td >
< / tr >
< / tbody >
< / table > < / div >
< / div >
< table xmlns:rev = "http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width = "100%" > < tr >
< td align = "left" > < / td >
2009-12-08 12:42:33 +00:00
< td align = "right" > < div class = "copyright-footer" > Copyright © 1998 -2007 John Maddock< p >
2007-11-07 03:23:31 +00:00
Distributed under the Boost Software License, Version 1.0. (See accompanying
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 > )
2007-12-14 10:11:21 +00:00
< / p >
< / div > < / td >
2007-06-08 09:23:23 +00:00
< / tr > < / table >
< hr >
< div class = "spirit-nav" >
2010-07-08 23:13:28 +00:00
< 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 >
2007-06-08 09:23:23 +00:00
< / div >
< / body >
< / html >