1 //===----------------------------------------------------------------------===//
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
20 #include <__config>
21
22 #if _LIBCPP_STD_VER <= 11
23 #error
24 #else
25
26 #include <regex>
27 #include <cassert>
28
main()29 int main()
30 {
31 {
32 const char phone_book[] = "555-1234, 555-2345, 555-3456";
33 std::cregex_iterator i(
34 std::begin(phone_book), std::end(phone_book),
35 std::regex("\\d{3}-\\d{4}"));
36 }
37 }
38 #endif
39