1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // template <class charT, class traits = regex_traits<charT>>
17 // typedef charT value_type;
18 // typedef regex_constants::syntax_option_type flag_type;
19 // typedef typename traits::locale_type locale_type;
22 #include <type_traits>
23 #include "test_macros.h"
27 static_assert((std::is_same<std::basic_regex<char>::value_type, char>::value), "");
28 static_assert((std::is_same<std::basic_regex<char>::flag_type,
29 std::regex_constants::syntax_option_type>::value), "");
30 static_assert((std::is_same<std::basic_regex<char>::locale_type, std::locale>::value), "");
32 static_assert((std::is_same<std::basic_regex<wchar_t>::value_type, wchar_t>::value), "");
33 static_assert((std::is_same<std::basic_regex<wchar_t>::flag_type,
34 std::regex_constants::syntax_option_type>::value), "");
35 static_assert((std::is_same<std::basic_regex<wchar_t>::locale_type, std::locale>::value), "");