blob: 02011ac56ebb9c185f8e762a23f9d42ec113a356 [file] [log] [blame]
Howard Hinnant8c2c18d2010-06-24 21:28:00 +00001//===----------------------------------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
Howard Hinnantb64f8b02010-11-16 22:09:02 +00005// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
Howard Hinnant8c2c18d2010-06-24 21:28:00 +00007//
8//===----------------------------------------------------------------------===//
9
10// <regex>
11
12// template <class charT, class traits = regex_traits<charT>>
13// class basic_regex
14// {
15// public:
16// // types:
17// typedef charT value_type;
18// typedef regex_constants::syntax_option_type flag_type;
19// typedef typename traits::locale_type locale_type;
20
21#include <regex>
22#include <type_traits>
Howard Hinnant8c2c18d2010-06-24 21:28:00 +000023
24int main()
25{
26 static_assert((std::is_same<std::basic_regex<char>::value_type, char>::value), "");
27 static_assert((std::is_same<std::basic_regex<char>::flag_type,
28 std::regex_constants::syntax_option_type>::value), "");
29 static_assert((std::is_same<std::basic_regex<char>::locale_type, std::locale>::value), "");
30
31 static_assert((std::is_same<std::basic_regex<wchar_t>::value_type, wchar_t>::value), "");
32 static_assert((std::is_same<std::basic_regex<wchar_t>::flag_type,
33 std::regex_constants::syntax_option_type>::value), "");
34 static_assert((std::is_same<std::basic_regex<wchar_t>::locale_type, std::locale>::value), "");
35}