//===----------------------------------------------------------------------===// // // 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 collate_byname // : public collate // { // public: // typedef basic_string string_type; // explicit collate_byname(const char*, size_t refs = 0); // explicit collate_byname(const string&, size_t refs = 0); // protected: // ~collate_byname(); // }; #include #include #include #include #include "platform_support.h" // locale name macros int main() { std::locale l(LOCALE_en_US_UTF_8); { assert(std::has_facet >(l)); assert(&std::use_facet >(l) == &std::use_facet >(l)); } { assert(std::has_facet >(l)); assert(&std::use_facet >(l) == &std::use_facet >(l)); } }