//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // class ostream_iterator // ostream_iterator& operator*() const; #include #include #include int main() { std::ostringstream os; std::ostream_iterator i(os); std::ostream_iterator& iref = *i; assert(&iref == &i); }