//===----------------------------------------------------------------------===// // // 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 ostreambuf_iterator // : public iterator // { // public: // typedef charT char_type; // typedef traits traits_type; // typedef basic_streambuf streambuf_type; // typedef basic_ostream ostream_type; // ... #include #include #include int main() { typedef std::ostreambuf_iterator I1; static_assert((std::is_convertible >::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same >::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); typedef std::ostreambuf_iterator I2; static_assert((std::is_convertible >::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same >::value), ""); static_assert((std::is_same::value), ""); static_assert((std::is_same::value), ""); }