138fd1498Szrj// <experimental/regex> -*- C++ -*- 238fd1498Szrj 338fd1498Szrj// Copyright (C) 2015-2018 Free Software Foundation, Inc. 438fd1498Szrj// 538fd1498Szrj// This file is part of the GNU ISO C++ Library. This library is free 638fd1498Szrj// software; you can redistribute it and/or modify it under the 738fd1498Szrj// terms of the GNU General Public License as published by the 838fd1498Szrj// Free Software Foundation; either version 3, or (at your option) 938fd1498Szrj// any later version. 1038fd1498Szrj 1138fd1498Szrj// This library is distributed in the hope that it will be useful, 1238fd1498Szrj// but WITHOUT ANY WARRANTY; without even the implied warranty of 1338fd1498Szrj// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1438fd1498Szrj// GNU General Public License for more details. 1538fd1498Szrj 1638fd1498Szrj// Under Section 7 of GPL version 3, you are granted additional 1738fd1498Szrj// permissions described in the GCC Runtime Library Exception, version 1838fd1498Szrj// 3.1, as published by the Free Software Foundation. 1938fd1498Szrj 2038fd1498Szrj// You should have received a copy of the GNU General Public License and 2138fd1498Szrj// a copy of the GCC Runtime Library Exception along with this program; 2238fd1498Szrj// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 2338fd1498Szrj// <http://www.gnu.org/licenses/>. 2438fd1498Szrj 2538fd1498Szrj/** @file experimental/regex 2638fd1498Szrj * This is a TS C++ Library header. 2738fd1498Szrj */ 2838fd1498Szrj 2938fd1498Szrj#ifndef _GLIBCXX_EXPERIMENTAL_REGEX 3038fd1498Szrj#define _GLIBCXX_EXPERIMENTAL_REGEX 1 3138fd1498Szrj 3238fd1498Szrj#pragma GCC system_header 3338fd1498Szrj 3438fd1498Szrj#if __cplusplus >= 201402L 3538fd1498Szrj 3638fd1498Szrj#include <regex> 3738fd1498Szrj#include <experimental/string> 3838fd1498Szrj 3938fd1498Szrjnamespace std _GLIBCXX_VISIBILITY(default) 4038fd1498Szrj{ 4138fd1498Szrj_GLIBCXX_BEGIN_NAMESPACE_VERSION 4238fd1498Szrj 4338fd1498Szrjnamespace experimental 4438fd1498Szrj{ 4538fd1498Szrjinline namespace fundamentals_v2 4638fd1498Szrj{ 47*58e805e6Szrj#if _GLIBCXX_USE_CXX11_ABI 4838fd1498Szrjnamespace pmr 4938fd1498Szrj{ 5038fd1498Szrj template<typename _BidirectionalIterator> 5138fd1498Szrj using match_results 5238fd1498Szrj = std::match_results<_BidirectionalIterator, polymorphic_allocator< 5338fd1498Szrj sub_match<_BidirectionalIterator>>>; 5438fd1498Szrj 5538fd1498Szrj typedef match_results<const char*> cmatch; 5638fd1498Szrj typedef match_results<const wchar_t*> wcmatch; 5738fd1498Szrj typedef match_results<string::const_iterator> smatch; 5838fd1498Szrj typedef match_results<wstring::const_iterator> wsmatch; 5938fd1498Szrj 6038fd1498Szrj} // namespace pmr 61*58e805e6Szrj#endif 6238fd1498Szrj} // namespace fundamentals_v2 6338fd1498Szrj} // namespace experimental 6438fd1498Szrj_GLIBCXX_END_NAMESPACE_VERSION 6538fd1498Szrj} // namespace std 6638fd1498Szrj 6738fd1498Szrj#endif // C++14 6838fd1498Szrj 6938fd1498Szrj#endif // _GLIBCXX_EXPERIMENTAL_REGEX 70