//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template // class ctype // : public locale::facet, // public ctype_base // { // public: // typedef CharT char_type; // }; #include #include #include int main() { std::locale l = std::locale::classic(); { assert(std::has_facet >(l)); const std::ctype& f = std::use_facet >(l); { (void)std::ctype::id; } static_assert((std::is_same::char_type, wchar_t>::value), ""); static_assert((std::is_base_of >::value), ""); static_assert((std::is_base_of >::value), ""); } }