class
<fstream>
std::wfilebuf
typedef basic_filebuf<wchar_t> wfilebuf;
File stream buffer (wide)
Stream buffer to read from and write to files using wide characters.
This is an instantiation of basic_filebuf with the following template parameters:
template parameter | definition | comments |
charT | wchar_t | Aliased as member char_type |
traits | char_traits<wchar_t> | Aliased as member traits_type |
Public member functions
Note: This section links to the references for members of its basic template (basic_filebuf).
- (constructor)
- Construct object (public member function
)
- (destructor)
- Destruct object (public member function
)
- operator=
- Move-assignment (public member function
)
- swap
- Swap file buffers (public member function
)
File association
- open
- Open file (public member function
)
- is_open
- Check if file is open (public member function
)
- close
- Close file (public member function
)
Public member functions inherited from wstreambuf
Locales:
- pubimbue
- Imbue locale (public member function
)
- getloc
- Get current locale (public member function
)
Buffer management and positioning:
- pubsetbuf
- Set buffer array (public member function
)
- pubseekoff
- Set internal position pointer to relative position (public member function
)
- pubseekpos
- Set internal position pointer to absolute position (public member function
)
- pubsync
- Synchronize stream buffer (public member function
)
Input functions (get):
- in_avail
- Get number of character available to read (public member function
)
- snextc
- Advance to next position and get character (public member function
)
- sbumpc
- Get current character and advance to next position (public member function
)
- sgetc
- Get current character (public member function
)
- sgetn
- Get sequence of characters (public member function
)
- sputbackc
- Put character back (public member function
)
- sungetc
- Decrease current position (public member function
)
Output functions (put):
- sputc
- Put character and advance to next position (public member function
)
- sputn
- Put sequence of characters (public member function
)
Protected virtual function overrides
- showmanyc
- Get number of characters available (public member function
)
- underflow
- Get character on underflow (protected virtual member function
)
- uflow
- Get character on overflow and advance position (protected virtual member function
)
- pbackfail
- Put character back on underflow (protected virtual member function
)
- overflow
- Put character on overflow (protected virtual member function
)
- setbuf
- Set buffer (protected virtual member function
)
- seekoff
- Set internal position to relative position (protected virtual member function
)
- seekpos
- Set position pointer to absolute position (protected virtual member function
)
- sync
- Synchornize buffer (protected virtual member function
)
- imbue
- Imbue locale (protected virtual member function
)
The class also inherits other protected members that are non-virtual or not overridden. See base class wstreambuf for more details.
Non-member function overloads
- swap
- Swap file buffers (function template
)