strstream
标准库标头<strstream>
此标头是输入/输出图书馆。
班
*。
strStrebuf%28被废弃的%29实现原始字符数组设备%28class%29
实现字符数组输入操作%28 class%29
鸵鸟流%28不推荐%29实现字符数组输出操作%28class%29
strstream%28不推荐%29实现字符数组输入/输出操作%28class%29
简介
二次
namespace std {
class strstreambuf;
class istrstream;
class ostrstream;
class strstream;
}
二次
类std::strstreambuf
二次
class strstreambuf : public basic_streambuf<char> {
public:
explicit strstreambuf(streamsize alsize_arg = 0
strstreambuf(void* (*palloc_arg)(size_t), void (*pfree_arg)(void*)
strstreambuf(char* gnext_arg, streamsize n, char* pbeg_arg = 0
strstreambuf(const char* gnext_arg, streamsize n
strstreambuf(signed char* gnext_arg, streamsize n, signed char* pbeg_arg = 0
strstreambuf(const signed char* gnext_arg, streamsize n
strstreambuf(unsigned char* gnext_arg, streamsize n, unsigned char* pbeg_arg = 0
strstreambuf(const unsigned char* gnext_arg, streamsize n
virtual ~strstreambuf(
void freeze(bool freezefl = true
char* str(
int pcount(
protected:
virtual int_type overflow (int_type c = EOF
virtual int_type pbackfail(int_type c = EOF
virtual int_type underflow(
virtual pos_type seekoff(off_type off, ios_base::seekdir way,
ios_base::openmode which = ios_base::in|ios_base::out
virtual pos_type seekpos(pos_type sp,
ios_base::openmode which = ios_base::in|ios_base::out
virtual streambuf* setbuf(char* s, streamsize n
private:
typedef /*bitmask type*/ strstate; // exposition only
static const strstate allocated; // exposition only
static const strstate constant; // exposition only
static const strstate dynamic; // exposition only
static const strstate frozen; // exposition only
strstate strmode; // exposition only
streamsize alsize; // exposition only
void* (*palloc)(size_t // exposition only
void (*pfree)(void* // exposition only
};
二次
类std::istrstream
二次
class istrstream : public basic_istream<char> {
public:
explicit istrstream(const char* s
explicit istrstream(char* s
istrstream(const char* s, streamsize n
istrstream(char* s, streamsize n
virtual ~istrstream(
strstreambuf* rdbuf() const;
char *str(
private:
strstreambuf sb; // exposition only
};
二次
类std::ostrstream
二次
class ostrstream : public basic_ostream<char> {
public:
ostrstream(
ostrstream(char* s, int n, ios_base::openmode mode = ios_base::out
virtual ~ostrstream(
strstreambuf* rdbuf() const;
void freeze(bool freezefl = true
char* str(
int pcount() const;
private:
strstreambuf sb; // exposition only
};
二次
类std::strstream
二次
class strstream : public basic_iostream<char> {
public:
// Types
typedef char char_type;
typedef typename char_traits<char>::int_type int_type;
typedef typename char_traits<char>::pos_type pos_type;
typedef typename char_traits<char>::off_type off_type;
// constructors/destructor
strstream(
strstream(char* s, int n,
ios_base::openmode mode = ios_base::in
二次
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。