Namespaces
Variants
Views
Actions

std::basic_filebuf::basic_filebuf

From cppreference.com
< cpp‎ | io‎ | basic filebuf
Revision as of 09:22, 15 February 2013 by Cubbi (Talk | contribs)

Template:ddcl list begin <tr class="t-dcl ">

<td >
basic_filebuf();
</td>

<td > (1) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td >
basic_filebuf( const std::basic_filebuf& rhs ) = delete;
</td>

<td > (2) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
basic_filebuf( std::basic_filebuf&& rhs );
</td>

<td > (3) </td> <td > (since C++11) </td> </tr> Template:ddcl list end

1) Constructs a std::basic_filebuf object, initializing the base class by calling the default constructor of std::basic_streambuf. The created basic_filebuf is not associated with a file, and Template:rlpf returns false.

2) The copy constructor is deleted; std::basic_filebuf is not CopyConstructible

3) Move-constructs a std::basic_filebuf object by moving all contents from another std::basic_filebuf object rhs, including the buffers, the associated file, the locale, the openmode, the is_open variable, and all other state. After move, rhs is not associated with a file and rhs.is_open()==false. The member pointers of the base class std::basic_streambuf of rhs and of the base class of *this are guaranteed to point to different buffers (unless null).

Contents

Parameters

rhs - another basic_filebuf

Notes

Typically called by the constructor of std::basic_fstream.

Example

See also

Template:cpp/io/basic filebuf/dcl list operator=Template:cpp/io/basic filebuf/dcl list ~basic filebuf