tmp/tmpflet5mnh/{from.md → to.md}
RENAMED
|
@@ -1,17 +1,19 @@
|
|
| 1 |
## Requirements <a id="re.req">[[re.req]]</a>
|
| 2 |
|
| 3 |
This subclause defines requirements on classes representing regular
|
| 4 |
-
expression traits.
|
| 5 |
-
|
|
|
|
|
|
|
| 6 |
|
| 7 |
The class template `basic_regex`, defined in Clause [[re.regex]], needs
|
| 8 |
a set of related types and functions to complete the definition of its
|
| 9 |
semantics. These types and functions are provided as a set of member
|
| 10 |
-
|
| 11 |
-
`basic_regex` class template. This subclause defines the semantics
|
| 12 |
-
these members.
|
| 13 |
|
| 14 |
To specialize class template `basic_regex` for a character container
|
| 15 |
`CharT` and its related regular expression traits class `Traits`, use
|
| 16 |
`basic_regex<CharT, Traits>`.
|
| 17 |
|
|
@@ -24,10 +26,12 @@ iterators ([[input.iterators]]); `F1` and `F2` are forward iterators (
|
|
| 24 |
object of type `X::string_type`; `cs` is an object of type
|
| 25 |
`const X::string_type`; `b` is a value of type `bool`; `I` is a value of
|
| 26 |
type `int`; `cl` is an object of type `X::char_class_type`, and `loc` is
|
| 27 |
an object of type `X::locale_type`.
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
| 33 |
|
|
|
|
| 1 |
## Requirements <a id="re.req">[[re.req]]</a>
|
| 2 |
|
| 3 |
This subclause defines requirements on classes representing regular
|
| 4 |
+
expression traits.
|
| 5 |
+
|
| 6 |
+
[*Note 1*: The class template `regex_traits`, defined in Clause
|
| 7 |
+
[[re.traits]], satisfies these requirements. — *end note*]
|
| 8 |
|
| 9 |
The class template `basic_regex`, defined in Clause [[re.regex]], needs
|
| 10 |
a set of related types and functions to complete the definition of its
|
| 11 |
semantics. These types and functions are provided as a set of member
|
| 12 |
+
*typedef-name*s and functions in the template parameter `traits` used by
|
| 13 |
+
the `basic_regex` class template. This subclause defines the semantics
|
| 14 |
+
of these members.
|
| 15 |
|
| 16 |
To specialize class template `basic_regex` for a character container
|
| 17 |
`CharT` and its related regular expression traits class `Traits`, use
|
| 18 |
`basic_regex<CharT, Traits>`.
|
| 19 |
|
|
|
|
| 26 |
object of type `X::string_type`; `cs` is an object of type
|
| 27 |
`const X::string_type`; `b` is a value of type `bool`; `I` is a value of
|
| 28 |
type `int`; `cl` is an object of type `X::char_class_type`, and `loc` is
|
| 29 |
an object of type `X::locale_type`.
|
| 30 |
|
| 31 |
+
[*Note 2*: The value of *I* will only be 8, 10, or 16. — *end note*]
|
| 32 |
+
|
| 33 |
+
[*Note 3*: Class template `regex_traits` satisfies the requirements for
|
| 34 |
+
a regular expression traits class when it is specialized for `char` or
|
| 35 |
+
`wchar_t`. This class template is described in the header `<regex>`, and
|
| 36 |
+
is described in Clause [[re.traits]]. — *end note*]
|
| 37 |
|