//===----------------------------------------------------------------------===// // // 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: // typedef charT char_type; // typedef traits traits_type; // typedef typename traits::int_type int_type; // typedef basic_streambuf streambuf_type; // typedef basic_istream istream_type; // ... #include #include #include int main() { typedef std::istreambuf_iterator I1; static_assert((std::is_convertible::off_type, char*, char> >::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), ""); static_assert((std::is_same::value), ""); typedef std::istreambuf_iterator I2; static_assert((std::is_convertible::off_type, wchar_t*, wchar_t> >::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), ""); static_assert((std::is_same::value), ""); }