ostream
标准库标头<ostream>
此标头是输入/输出图书馆。
班
*。
基本[医]Ostream封装给定的抽象设备%28 std::basic[医]提供高级输出接口%28类模板%29
STD::Ostream Basic[医]流<char>28%胡枝子f%29
性病::WOFREW BASIC[医]<wchar[医]T>%28-胡枝子f%29
功能
运算符<%28std::basic[医]Ostream%29插入字符数据%28功能模板%29
机械手
结束输出%27\0%27%28函数模板%29
刷新输出流%28功能模板%29
Endl输出%27\n%27并刷新输出流%28功能模板%29
简介
二次
namespace std {
template <class charT, class traits = char_traits<charT> >
class basic_ostream;
typedef basic_ostream<char> ostream;
typedef basic_ostream<wchar_t> wostream;
template <class charT, class traits>
basic_ostream<charT,traits>& endl(basic_ostream<charT,traits>& os
template <class charT, class traits>
basic_ostream<charT,traits>& ends(basic_ostream<charT,traits>& os
template <class charT, class traits>
basic_ostream<charT,traits>& flush(basic_ostream<charT,traits>& os
template <class charT, class traits, class T>
basic_ostream<charT, traits>&
operator<<(basic_ostream<charT, traits>&& os, const T& x
// character inserters
template<class charT, class traits>
basic_ostream<charT,traits>&
operator<<(basic_ostream<charT,traits>&, charT
template<class charT, class traits>
basic_ostream<charT,traits>&
operator<<(basic_ostream<charT,traits>&, char
template<class traits>
basic_ostream<char,traits>&
operator<<(basic_ostream<char,traits>&, char
// signed and unsigned
template<class traits>
basic_ostream<char,traits>&
operator<<(basic_ostream<char,traits>&, signed char
template<class traits>
basic_ostream<char,traits>&
operator<<(basic_ostream<char,traits>&, unsigned char
template<class charT, class traits>
basic_ostream<charT,traits>&
operator<<(basic_ostream<charT,traits>&, const charT*
template<class charT, class traits>
basic_ostream<charT,traits>&
operator<<(basic_ostream<charT,traits>&, const char*
template<class traits>
basic_ostream<char,traits>&
operator<<(basic_ostream<char,traits>&, const char*
// signed and unsigned
template<class traits>
basic_ostream<char,traits>&
operator<<(basic_ostream<char,traits>&, const signed char*
template<class traits>
basic_ostream<char,traits>&
operator<<(basic_ostream<char,traits>&, const unsigned char*
}
二次
类std::basic_ostream
二次
template <class charT, class traits = char_traits<charT> >
class basic_ostream : virtual public basic_ios<charT,traits> {
public:
// types (inherited from basic_ios):
typedef charT char_type;
typedef typename traits::int_type int_type;
typedef typename traits::pos_type pos_type;
typedef typename traits::off_type off_type;
typedef traits traits_type;
// Constructor/destructor:
explicit basic_ostream(basic_streambuf<char_type,traits>* sb
virtual ~basic_ostream(
// Prefix/suffix:
class sentry;
// Formatted output:
basic_ostream<charT,traits>& operator<<(
basic_ostream<charT,traits>& (*pf)(basic_ostream<charT,traits>&)
basic_ostream<charT,traits>& operator<<(
basic_ios<charT,traits>& (*pf)(basic_ios<charT,traits>&)
basic_ostream<charT,traits>& operator<<(
ios_base& (*pf)(ios_base&)
basic_ostream<charT,traits>& operator<<(bool n
basic_ostream<charT,traits>& operator<<(short n
basic_ostream<charT,traits>& operator<<(unsigned short n
basic_ostream<charT,traits>& operator<<(int n
basic_ostream<charT,traits>& operator<<(unsigned int n
basic_ostream<charT,traits>& operator<<(long n
basic_ostream<charT,traits>& operator<<(unsigned long n
basic_ostream<charT,traits>& operator<<(long long n
basic_ostream<charT,traits>& operator<<(unsigned long long n
basic_ostream<charT,traits>& operator<<(float f
basic_ostream<charT,traits>& operator<<(double f
basic_ostream<charT,traits>& operator<<(long double f
basic_ostream<charT,traits>& operator<<(const void* p
basic_ostream<charT,traits>& operator<<(
basic_streambuf<char_type,traits>* sb
// Unformatted output:
basic_ostream<charT,traits>& put(char_type c
basic_ostream<charT,traits>& write(const char_type* s, streamsize n
basic_ostream<charT,traits>& flush(
// seeks:
pos_type tellp(
basic_ostream<charT,traits>& seekp(pos_type
basic_ostream<charT,traits>& seekp(off_type, ios_base::seekdir
protected:
basic_ostream(const basic_ostream& rhs) = delete;
basic_ostream(basic_ostream&& rhs
// Assign/swap
basic_ostream& operator=(basic_ostream& rhs) = delete;
basic_ostream& operator=(const basic_ostream&& rhs
void swap(basic_ostream& rhs
};
二次
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。