![]() |
Home | Libraries | People | FAQ | More |
If type BidiIterT
is used
as a template argument to
,
then basic_regex<>
CharT
is iterator_traits<BidiIterT>::value_type
. Type CharT
must have a trivial default constructor, copy constructor, assignment operator,
and destructor. In addition the following requirements must be met for objects;
c
of type CharT
,
c1
and c2
of type CharT const
,
and i
of type int
:
Table 1.14. CharT Requirements
Expression |
Return type |
Assertion / Note / Pre- / Post-condition |
---|---|---|
|
|
Default constructor (must be trivial). |
|
|
Copy constructor (must be trivial). |
|
|
Assignment operator (must be trivial). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
In the following table X
denotes a traits class defining types and functions for the character container
type CharT
; u
is an object of type X
;
v
is an object of type const X
;
p
is a value of type const CharT*
; I1
and I2
are Input Iterators
;
c
is a value of type const CharT
;
s
is an object of type X::string_type
;
cs
is an object of type
const X::string_type
;
b
is a value of type bool
; i
is a value of type int
; F1
and F2
are values of type const CharT*
; loc
is an object of type X::locale_type
; and ch
is an object of const char
.
Table 1.15. Traits Requirements
Expression |
Return type |
Assertion / Note |
---|---|---|
|
|
The character container type used in the implementation of class
template |
|
|
|
|
Implementation defined |
A copy constructible type that represents the locale used by the traits class. |
|
Implementation defined |
A bitmask type representing a particular character classification. Multiple values of this type can be bitwise-or'ed together to obtain a new valid value. |
|
|
Yields a value between |
|
|
Widens the specified |
|
|
For any characters |
|
|
For characters |
|
|
Returns a character such that for any character |
|
|
For all characters |
|
|
Returns a sort key for the character sequence designated by the
iterator range |
|
|
Returns a sort key for the character sequence designated by the
iterator range |
|
|
Converts the character sequence designated by the iterator range
|
|
|
Returns a sequence of characters that represents the collating
element consisting of the character sequence designated by the
iterator range |
|
|
Returns |
|
|
Returns the value represented by the digit |
|
|
Imbues |
|
|
Returns the current locale used by |
This section is adapted from the equivalent page in the Boost.Regex documentation and from the proposal to add regular expressions to the Standard Library.