public member function
<fstream>

std::filebuf::filebuf

filebuf();
default (1)
filebuf();
copy (deleted) (2)
filebuf (const filebuf&) = delete;
move (3)
filebuf (filebuf&& x);
Construct object
Constructs a filebuf object:

(1) default constructor
Constructs a filebuf object. The object is not associated to any file (it is not open).
(2) copy constructor (deleted)
Deleted (no copy constructor).
(3) move constructor
Acquires the contents of x.
x is a closed file stream buffer after the call, with an otherwise unspecified but valid state.
It is unspecified whether the internal sequence is the one in x before the call, or a copy of it. In any case, both objects use independent sequences after the call (if any).

Parameters

x
A filebuf object of the same type (with the same class template parameters charT and traits), whose value is moved.

Data races

The move constructor (3) modifies x.

Exception safety

Strong guarantee: if an exception is thrown, there are no side effects.

See also