blob: f108d2e8d0c4cadcc54795a255765dccd3f30a72 [file] [log] [blame]
Eric Fiseliere047a722016-05-07 03:09:55 +00001// -*- C++ -*-
Louis Dionne9bd93882021-11-17 16:25:01 -05002//===----------------------------------------------------------------------===//
Eric Fiseliere047a722016-05-07 03:09:55 +00003//
Chandler Carruthd2012102019-01-19 10:56:40 +00004// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Eric Fiseliere047a722016-05-07 03:09:55 +00007//
8//===----------------------------------------------------------------------===//
9
10#ifndef _LIBCPP_EXPERIMENTAL_REGEX
11#define _LIBCPP_EXPERIMENTAL_REGEX
12/*
13 experimental/regex synopsis
14
15// C++1z
16namespace std {
17namespace experimental {
18inline namespace fundamentals_v1 {
19namespace pmr {
20
21 template <class BidirectionalIterator>
22 using match_results =
23 std::match_results<BidirectionalIterator,
24 polymorphic_allocator<sub_match<BidirectionalIterator>>>;
25
26 typedef match_results<const char*> cmatch;
27 typedef match_results<const wchar_t*> wcmatch;
28 typedef match_results<string::const_iterator> smatch;
29 typedef match_results<wstring::const_iterator> wsmatch;
30
31} // namespace pmr
32} // namespace fundamentals_v1
33} // namespace experimental
34} // namespace std
35
36 */
37
38#include <experimental/__config>
Eric Fiseliere047a722016-05-07 03:09:55 +000039#include <experimental/memory_resource>
Arthur O'Dwyer65077c02022-01-07 09:45:05 -050040#include <experimental/string>
41#include <regex>
Eric Fiseliere047a722016-05-07 03:09:55 +000042
43#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
Arthur O'Dwyer6eeaa002022-02-01 20:16:40 -050044# pragma GCC system_header
Eric Fiseliere047a722016-05-07 03:09:55 +000045#endif
46
47_LIBCPP_BEGIN_NAMESPACE_LFTS_PMR
48
49template <class _BiDirIter>
50using match_results =
51 _VSTD::match_results<_BiDirIter,
52 polymorphic_allocator<_VSTD::sub_match<_BiDirIter>>>;
53
54typedef match_results<const char*> cmatch;
Eric Fiseliere047a722016-05-07 03:09:55 +000055typedef match_results<_VSTD_LFTS_PMR::string::const_iterator> smatch;
Louis Dionne89258142021-08-23 15:32:36 -040056#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
57typedef match_results<const wchar_t*> wcmatch;
Eric Fiseliere047a722016-05-07 03:09:55 +000058typedef match_results<_VSTD_LFTS_PMR::wstring::const_iterator> wsmatch;
Louis Dionne89258142021-08-23 15:32:36 -040059#endif
Eric Fiseliere047a722016-05-07 03:09:55 +000060
61_LIBCPP_END_NAMESPACE_LFTS_PMR
62
63#endif /* _LIBCPP_EXPERIMENTAL_REGEX */