1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // <locale> 11 12 // wstring_convert<Codecvt, Elem, Wide_alloc, Byte_alloc> 13 14 // state_type state() const; 15 16 #include <locale> 17 #include <codecvt> 18 main()19int main() 20 { 21 typedef std::codecvt_utf8<wchar_t> Codecvt; 22 typedef std::wstring_convert<Codecvt> Myconv; 23 Myconv myconv; 24 std::mbstate_t s = myconv.state(); 25 ((void)s); 26 } 27