diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2023-02-11 12:38:04 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2023-02-11 12:38:11 +0000 | 
| commit | e3b557809604d036af6e00c60f012c2025b59a5e (patch) | |
| tree | 8a11ba2269a3b669601e2fd41145b174008f4da8 /libcxx/include/experimental/regex | |
| parent | 08e8dd7b9db7bb4a9de26d44c1cbfd24e869c014 (diff) | |
Diffstat (limited to 'libcxx/include/experimental/regex')
| -rw-r--r-- | libcxx/include/experimental/regex | 12 | 
1 files changed, 8 insertions, 4 deletions
| diff --git a/libcxx/include/experimental/regex b/libcxx/include/experimental/regex index 4dc2bbae4510..0c871f366dc8 100644 --- a/libcxx/include/experimental/regex +++ b/libcxx/include/experimental/regex @@ -48,18 +48,22 @@ namespace pmr {  _LIBCPP_BEGIN_NAMESPACE_LFTS_PMR +#ifndef _LIBCPP_CXX03_LANG +  template <class _BiDirIter>  using match_results =      _VSTD::match_results<_BiDirIter,          polymorphic_allocator<_VSTD::sub_match<_BiDirIter>>>; -typedef match_results<const char*> cmatch; -typedef match_results<_VSTD_LFTS_PMR::string::const_iterator> smatch; +_LIBCPP_DEPCREATED_MEMORY_RESOURCE("cmatch") typedef match_results<const char*> cmatch; +_LIBCPP_DEPCREATED_MEMORY_RESOURCE("smatch") typedef match_results<_VSTD_LFTS_PMR::string::const_iterator> smatch;  #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS -typedef match_results<const wchar_t*> wcmatch; -typedef match_results<_VSTD_LFTS_PMR::wstring::const_iterator> wsmatch; +_LIBCPP_DEPCREATED_MEMORY_RESOURCE("wcmatch") typedef match_results<const wchar_t*> wcmatch; +_LIBCPP_DEPCREATED_MEMORY_RESOURCE("wsmatch") typedef match_results<_VSTD_LFTS_PMR::wstring::const_iterator> wsmatch;  #endif +#endif // _LIBCPP_CXX03_LANG +  _LIBCPP_END_NAMESPACE_LFTS_PMR  #endif /* _LIBCPP_EXPERIMENTAL_REGEX */ | 
