//===----------------------------------------------------------------------===// // // 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 istreambuf_iterator // : public iterator // { // public: // ... // proxy operator++(int); // class proxy // { // public: // charT operator*(); // }; #include #include #include int main() { { std::istringstream inf("abc"); std::istreambuf_iterator i(inf); assert(*i++ == 'a'); } { std::wistringstream inf(L"abc"); std::istreambuf_iterator i(inf); assert(*i++ == L'a'); } }