Standard Template Library - STL C++

<fstream>

Overview

Description

The <fstream> header file defines the file stream classes for file input and output.

Classes


class basic_filebuf

template <class C, class T = char_traits<C> >
class basic_filebuf : public basic_streambuf<C, T>;

Description

The basic_filebuf class defines the buffer class for streams to and from files.

Members
Constructors

basic_filebuf()

Typedefs

char_type

int_type

off_type

pos_type

traits_type

Functions

close()

is_open()

open()

protected:

overflow()

pbackfail()

seekoff()

seekpos()

setbuf()

sync()

uflow()

underflow()



class basic_fstream

template <class C, class T = char_traits<C> >
class basic_fstream : public basic_iostream<C,T>;

Description

The basic_fstream class defines streams for reading from and writing to files.

Members
Constructors

basic_fstream()

Typedefs

char_type

int_type

off_type

pos_type

traits_type

Functions

close()

is_open()

open()

rdbuf()



class basic_ifstream

template <class C, class T = char_traits<C> >
class basic_ifstream : public basic_istream<C, T>;

Description

The basic_ifstream class defines streams for reading from files.

Members
Constructors

basic_ifstream()

Typedefs

char_type

int_type

off_type

pos_type

traits_type

Functions

close()

is_open()

open()

rdbuf()



class basic_ofstream

template <class C, class T = char_traits<C> >
class basic_ofstream : public basic_ostream<C, T>;

Description

The basic_ofstream class defines streams for writing to files.

Members
Constructors

basic_ofstream()

Typedefs

char_type

int_type

off_type

pos_type

traits_type

Functions

close()

is_open()

open()

rdbuf()



Typedefs


filebuf

fstream

ifstream

ofstream

wfilebuf

wfstream

wifstream

wofstream



 

© 2007–2024 XoaX.net LLC. All rights reserved.