. \"ident "%W%" . \"Copyright (c) 1984 AT&T . \"All Rights Reserved . \"THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T . \"The copyright notice above does not evidence any . \"actual or intended publication of such source code. .TH IOS.OUT 3I+ "C++ Stream Library" " " .SH NAME ostream \- formatted and unformatted output .SH SYNOPSIS .ft B .ta1i 2i .nf #include typedef long streamoff, streampos; class ios { public: enum seek_dir { beg, cur, end }; enum open_mode { in, out, ate, app } ; // \fIand lots of other stuff ... \fP } ; class ostream : ios { public: ostream& flush(); int opfx(); ostream& put(char c); ostream& seekp(streampos pos); ostream& seekp(streamoff off, seek_dir d); streampos tellp(); ostream& write(const char* ptr,int n); ostream& write(const unsigned char* ptr, int n); ostream& operator<<(const char*); ostream& operator<<(char); ostream& operator<<(short); ostream& operator<<(int a); ostream& operator<<(long); ostream& operator<<(double); ostream& operator<<(unsigned char); ostream& operator<<(unsigned short); ostream& operator<<(unsigned int); ostream& operator<<(unsigned long); ostream& operator<<(void*); ostream& operator<<(const streambuf&); ostream& operator<<(ostream& (*)(ostream&)); }; class ostream_withassign { ostream_withassign(); istream& operator=(istream&); istream& operator=(streambuf*); }; extern ostream_withassign cout; extern ostream_withassign cerr; extern ostream_withassign clog; ostream& endl(ostream& i) ; ostream& ends(ostream& i) ; ostream& flush(ostream& i) ; .fi .ft R .SH DESCRIPTION \f(CWistream\fRs support insertion (storing) into an \f(CWstreambuf\fR. These are commonly refered to as output operations. .PP Assume: .br \(em \fBouts\fR is an \f(CWostream\fR. .br \(em \fBoutswa\fR is an \f(CWostream_withassign\fR. .br \(em \fBoutsp\fR is an \f(CWostream*\fR. .br \(em \fBc\fR is a \f(CWchar\fR. .br \(em \fBptr\fR is a \f(CWchar*\fR or \f(CWunsigned char*\fR. .br \(em \fBsb\fR is a \f(CWstreambuf*\fR .br \(em \fBi\fR and \fBn\fR are \f(CWint\fR. .br \(em \fBpos\fR is a \f(CWstreampos\fR. .br \(em \fBoff\fR is a \f(CWstreamoff\fR. .br \(em \fBdir\fR is a \f(CWseek_dir\fR. .br \(em \fBmanip\fR is a function with type \f(CWostream& (*)(ostream&)\fR. .PP .PP Constructors and assignment: .TP \fBostream(sb)\fR Initializes \fBios\fR state variables and associates stream with buffer \fBsb\fR. \fBostream_withassign()\fR Does no initialization. This allows a file static variable of this type (\fBcout\fR for example) to be used before it is constructed provided it is assigned to first. .TP \fBoutswa=sb\fR Associates \fBsb\fR with \fBswa\fR and initializes the entire state of \fBoutswa\fR. .TP \fBinswa=ins\fR Associates \fBins->rdbuf()\fR with \fBswa\fR and initializes the entire state of \fBoutswa\fR. The inserters: .TP \fBouts<sync\fR. .TP \fBouts<