diff options
| author | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2016-08-02 21:34:48 +0000 |
|---|---|---|
| committer | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2016-08-02 21:34:48 +0000 |
| commit | ac98d5980279c9faf5a2d581c32dfa57832d1639 (patch) | |
| tree | d22ec5ccc7b30ef2bcd238582f58415291a99567 /libcxx/include | |
| parent | b2738e41bf494f7b4e2daa2524b3904844a49de2 (diff) | |
| download | bcm5719-llvm-ac98d5980279c9faf5a2d581c32dfa57832d1639.tar.gz bcm5719-llvm-ac98d5980279c9faf5a2d581c32dfa57832d1639.zip | |
[libcxx] basic_regex: add traits_type, string_type
Summary:
In the synopsis in C++11 subclause 28.8 [re.regex], `basic_regex` is
specified to have member typedefs `traits_type` and `string_type`. This
change adds them to libc++.
Reviewers: mclow.lists, rsmith, hubert.reinterpretcast
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D22698
Patch by Jason Liu!
llvm-svn: 277526
Diffstat (limited to 'libcxx/include')
| -rw-r--r-- | libcxx/include/regex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/include/regex b/libcxx/include/regex index 1139d8fb2a9..b223e63c8b5 100644 --- a/libcxx/include/regex +++ b/libcxx/include/regex @@ -127,6 +127,8 @@ class basic_regex public: // types: typedef charT value_type; + typedef traits traits_type; + typedef typename traits::string_type string_type; typedef regex_constants::syntax_option_type flag_type; typedef typename traits::locale_type locale_type; @@ -2475,6 +2477,8 @@ class _LIBCPP_TYPE_VIS_ONLY basic_regex public: // types: typedef _CharT value_type; + typedef _Traits traits_type; + typedef typename _Traits::string_type string_type; typedef regex_constants::syntax_option_type flag_type; typedef typename _Traits::locale_type locale_type; |

