blob: c3a8770f01d182c43ead3998eb409ad32e2505b4 [file] [log] [blame]
// -*- C++ -*-
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// <regex>
// template <class charT>
// struct regex_traits
// {
// public:
// typedef charT char_type;
// typedef basic_string<char_type> string_type;
// typedef locale locale_type;
#include <regex>
#include <type_traits>
#include "test_macros.h"
int main(int, char**)
{
static_assert((std::is_same<std::regex_traits<char>::char_type, char>::value), "");
static_assert((std::is_same<std::regex_traits<char>::string_type, std::string>::value), "");
static_assert((std::is_same<std::regex_traits<char>::locale_type, std::locale>::value), "");
static_assert((std::is_same<std::regex_traits<wchar_t>::char_type, wchar_t>::value), "");
static_assert((std::is_same<std::regex_traits<wchar_t>::string_type, std::wstring>::value), "");
static_assert((std::is_same<std::regex_traits<wchar_t>::locale_type, std::locale>::value), "");
return 0;
}