//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // istreambuf_iterator // istreambuf_iterator(const proxy& p) throw(); #include #include #include int main() { { std::istringstream inf("abc"); std::istreambuf_iterator j(inf); std::istreambuf_iterator i = j++; assert(i != std::istreambuf_iterator()); assert(*i == 'b'); } { std::wistringstream inf(L"abc"); std::istreambuf_iterator j(inf); std::istreambuf_iterator i = j++; assert(i != std::istreambuf_iterator()); assert(*i == L'b'); } }