Contents

# Index

< >

## <

<< for output

Operators and Default Streams

<<, output on ostream

Operators and Default Streams

## >

>> for input

Operators and Default Streams

>>, input on istream

Operators and Default Streams

## A

ansi extensions

C Input and Output

ANSI X3J16 library

Introduction to Iostreams

areas

Areas of a streambuf

Areas of a streambuf

Areas of a streambuf

## B

backing up

Backing up

beg

Repositioning an ostream

## C

C and C++, input/output

C Input and Output

C Input and Output

C Input and Output

C stdio functions

Operators and Default Streams

C stdout

Operators and Default Streams

cerr

Operators and Default Streams
Wrappers for C stdio

Changing stream properties using manipulators

Changing stream properties using manipulators

Checking the state of a stream

Checking the state of a stream

Choices in formatting

Choices in formatting

cin

Wrappers for C stdio
Operators and Default Streams

class ios

Shared properties: class ios

class ostream

Managing output streams: class ostream

Classes for Files and Strings

Classes for Files and Strings

controlling streams

Choices in formatting

cout

Wrappers for C stdio
Operators and Default Streams

C-style formatting for streambuf objects

C-style formatting for streambuf objects

cur

Repositioning an ostream

## D

dec

Changing stream properties using manipulators

dynamically allocated strings

Reading and writing in memory

## E

end

Repositioning an ostream

endl

Changing stream properties using manipulators

ends

Changing stream properties using manipulators

extended data fields

Extended data fields

extended data method

Extended data fields

## F

flush

Changing stream properties using manipulators
Miscellaneous ostream utilities

formatting output

Choices in formatting

formatting streambuf

C-style formatting for streambuf objects

Forwarding I/O activity

Forwarding I/O activity

fstream.h

Reading and writing files

fstreambase\:\:close

Reading and writing files

## G

get area

Areas of a streambuf

## H

hex

Changing stream properties using manipulators

## I

ifstream

Classes for Files and Strings

ifstream\:\:ifstream

Reading and writing files

indirectbuf

Forwarding I/O activity

input

Classes for Files and Strings
Reading one character

Input and output together: class iostream

Input and output together: class iostream

input/output

C Input and Output

Introduction to Iostreams

Introduction to Iostreams

ios::badbit

Checking the state of a stream

ios::eofbit

Checking the state of a stream

ios::failbit

Checking the state of a stream

ios::goodbit

Checking the state of a stream

ios\:\:bad

Checking the state of a stream

ios\:\:bitalloc

Extended data fields

ios\:\:clear

Checking the state of a stream

ios\:\:dec

Choices in formatting

ios\:\:eof

Checking the state of a stream

ios\:\:fail

Checking the state of a stream

ios\:\:fill

Choices in formatting

ios\:\:fixed

Choices in formatting

ios\:\:flags

Choices in formatting

ios\:\:good

Checking the state of a stream

ios\:\:hex

Choices in formatting

ios\:\:internal

Choices in formatting

ios\:\:ios

Shared properties: class ios

ios\:\:iword

Extended data fields

ios\:\:left

Choices in formatting

ios\:\:oct

Choices in formatting

ios\:\:operator

Checking the state of a stream

ios\:\:precision

Choices in formatting

ios\:\:right

Choices in formatting

ios\:\:scientific

Choices in formatting

ios\:\:setf

Choices in formatting

ios\:\:setstate

Checking the state of a stream

ios\:\:showbase

Choices in formatting

ios\:\:showpoint

Choices in formatting

ios\:\:showpos

Choices in formatting

ios\:\:skipws

Choices in formatting

ios\:\:stdio

Choices in formatting

ios\:\:sync_with_stdio

Synchronizing related streams

ios\:\:tie

Synchronizing related streams

ios\:\:unitbuf

Choices in formatting

ios\:\:uppercase

Choices in formatting

ios\:\:xalloc

Extended data fields

iostate

Checking the state of a stream

iostream, AT&T version 2.0

Introduction to Iostreams

iostream.h

Managing output streams: class ostream

iostream\:\:get

Reading strings

iostream\:\:iostream

Input and output together: class iostream

istream utilities, miscellaneous

Miscellaneous istream utilities

istream, defined

Stream Classes

istream\:\:gcount

Miscellaneous istream utilities

istream\:\:get

Reading one character
Reading strings

istream\:\:gets

Reading strings

istream\:\:ignore

Miscellaneous istream utilities

istream\:\:istream

Managing input streams: class istream

istream\:\:peek

Reading one character

istream\:\:putback

Miscellaneous istream utilities

istream\:\:read

Reading strings

istream\:\:seekg

Repositioning an istream

istream\:\:tellg

Repositioning an istream

istrstream

Classes for Files and Strings
Reading and writing in memory

istrstream\:\:istrstream

Reading and writing in memory

## L

libc

C Input and Output

libio

Operators and Default Streams

Lisp synonym-streams

Forwarding I/O activity

Lisp two-way-streams

Forwarding I/O activity

## M

Managing input streams: class istream

Managing input streams: class istream

managing output streams

Managing output streams: class ostream

Managing output streams: class ostream

Managing output streams: class ostream

Miscellaneous istream utilities

Miscellaneous istream utilities

Miscellaneous ostream utilities

Miscellaneous ostream utilities

multiple inputs

Operators and Default Streams

## O

oct

Changing stream properties using manipulators

ofstream

Classes for Files and Strings

ofstream\:\:open

Reading and writing files

one character input

Reading one character

operators

Operators and Default Streams

Operators and Default Streams

Operators and Default Streams

ostream utilities, miscellaneous

Miscellaneous ostream utilities

ostream, defined

Stream Classes

ostream\:\:form

Writing on an ostream

ostream\:\:opfx

Miscellaneous ostream utilities

ostream\:\:osfx

Miscellaneous ostream utilities

ostream\:\:ostream

Managing output streams: class ostream

ostream\:\:put

Writing on an ostream

ostream\:\:seekp

Repositioning an ostream

ostream\:\:tellp

Repositioning an ostream

ostream\:\:vform

Writing on an ostream

ostream\:\:write

Writing on an ostream

ostrstream

Reading and writing in memory
Classes for Files and Strings

ostrstream\:\:freeze

Reading and writing in memory

ostrstream\:\:frozen

Reading and writing in memory

ostrstream\:\:ostrstream

Reading and writing in memory

ostrstream\:\:pcount

Reading and writing in memory

ostrstream\:\:str

Reading and writing in memory

output

Classes for Files and Strings

output position

Repositioning an ostream

output support

Repositioning an ostream

overflow

Simple output re-direction by redefining overflow

## P

parsing applications

Backing up

procbuf

Reading/writing from/to a pipe

procbuf\:\:~procbuf

Reading/writing from/to a pipe

procbuf\:\:close

Reading/writing from/to a pipe

procbuf\:\:open

Reading/writing from/to a pipe

procbuf\:\:procbuf

Reading/writing from/to a pipe

put area

Areas of a streambuf

## R

Reaching the underlying streambuf

Reaching the underlying streambuf

reading and writing files

Reading and writing files

Reading and writing in memory

Reading and writing in memory

Reading one character

Reading one character

reading strings

Reading strings
Reading and writing in memory

Reading/writing from/to a pipe

Reading/writing from/to a pipe

Repositioning an istream

Repositioning an istream

Repositioning an ostream

Repositioning an ostream

## S

scanning applications

Backing up

scanning streambuf

C-style formatting for streambuf objects

setbase

Changing stream properties using manipulators

setfill

Changing stream properties using manipulators

setprecision

Changing stream properties using manipulators

setw

Changing stream properties using manipulators

Shared properties: class ios

Shared properties: class ios

Simple output re-direction by redefining overflow

Simple output re-direction by redefining overflow

static strings

Reading and writing in memory

stderr

Wrappers for C stdio

stdin

Wrappers for C stdio

stdio

C Input and Output

stdio.h

Wrappers for C stdio

stdiobuf

Wrappers for C stdio

stdout

Wrappers for C stdio

Stream Classes

Stream Classes

stream method, defined

Checking the state of a stream

streambuf

Shared properties: class ios

streambuf class

Using the streambuf Layer

streambuf\:\:eback

Areas of a streambuf

streambuf\:\:egptr

Areas of a streambuf

streambuf\:\:epptr

Areas of a streambuf

streambuf\:\:gptr

Areas of a streambuf

streambuf\:\:pbase

Areas of a streambuf

streambuf\:\:pbump

Areas of a streambuf

streambuf\:\:pptr

Areas of a streambuf

streambuf\:\:scan

C-style formatting for streambuf objects

streambuf\:\:seekmark

Backing up

streambuf\:\:setp

Areas of a streambuf

streambuf\:\:vform

C-style formatting for streambuf objects

streambuf\:\:vscan

C-style formatting for streambuf objects

streambuf\:gbump

Areas of a streambuf

streammarker\:\:delta

Backing up

streammarker\:\:streammarker

Backing up

streams:conditions

Checking the state of a stream

streams:errors

Checking the state of a stream

strings in memory

Reading and writing in memory

strstream

Reading and writing in memory

strstreambase

Reading and writing in memory

strstreambase\:\:rdbuf

Reading and writing in memory

strstreambuf

Reading and writing in memory

synchronizing related streams

Synchronizing related streams

## U

unbounded backup

Backing up

ungetc

C Input and Output

using strings

Classes for Files and Strings

Using the streambuf Layer

Using the streambuf Layer

## W

Wrappers for C stdio

Wrappers for C stdio

Writing on an ostream

Writing on an ostream

writing strings

Reading and writing in memory

ws

Changing stream properties using manipulators