blob: 208de0e43cec8d2d6469142886f97302c9525105 [file] [log] [blame]
Marshall Clowe0f86722014-02-19 21:21:11 +00001//===----------------------------------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10// <regex>
11
12// class regex_iterator<BidirectionalIterator, charT, traits>
13
14// regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b,
15// const regex_type&& re,
16// int submatch = 0,
17// regex_constants::match_flag_type m =
18// regex_constants::match_default) = delete;
19
Dan Albert1d4a1ed2016-05-25 22:36:09 -070020#if __cplusplus <= 201402L
21#error
22#else
23
Marshall Clowe0f86722014-02-19 21:21:11 +000024#include <regex>
25#include <cassert>
Marshall Clow85d56222016-04-26 19:29:35 +000026
Marshall Clowe0f86722014-02-19 21:21:11 +000027int main()
28{
29 {
30 const char phone_book[] = "555-1234, 555-2345, 555-3456";
31 std::cregex_iterator i(
32 std::begin(phone_book), std::end(phone_book),
33 std::regex("\\d{3}-\\d{4}"));
34 }
35}
Dan Albert1d4a1ed2016-05-25 22:36:09 -070036#endif