
- C++ Library - Home
- C++ Library - <fstream>
- C++ Library - <iomanip>
- C++ Library - <ios>
- C++ Library - <iosfwd>
- C++ Library - <iostream>
- C++ Library - <istream>
- C++ Library - <ostream>
- C++ Library - <sstream>
- C++ Library - <streambuf>
- C++ Library - <atomic>
- C++ Library - <complex>
- C++ Library - <exception>
- C++ Library - <functional>
- C++ Library - <limits>
- C++ Library - <locale>
- C++ Library - <memory>
- C++ Library - <new>
- C++ Library - <numeric>
- C++ Library - <regex>
- C++ Library - <stdexcept>
- C++ Library - <string>
- C++ Library - <thread>
- C++ Library - <tuple>
- C++ Library - <typeinfo>
- C++ Library - <utility>
- C++ Library - <valarray>
- The C++ STL Library
- C++ Library - <array>
- C++ Library - <bitset>
- C++ Library - <deque>
- C++ Library - <forward_list>
- C++ Library - <list>
- C++ Library - <map>
- C++ Library - <multimap>
- C++ Library - <queue>
- C++ Library - <priority_queue>
- C++ Library - <set>
- C++ Library - <stack>
- C++ Library - <unordered_map>
- C++ Library - <unordered_set>
- C++ Library - <vector>
- C++ Library - <algorithm>
- C++ Library - <iterator>
- The C++ Advanced Library
- C++ Library - <any>
- C++ Library - <barrier>
- C++ Library - <bit>
- C++ Library - <chrono>
- C++ Library - <cinttypes>
- C++ Library - <clocale>
- C++ Library - <condition_variable>
- C++ Library - <coroutine>
- C++ Library - <cstdlib>
- C++ Library - <cstring>
- C++ Library - <cuchar>
- C++ Library - <charconv>
- C++ Library - <cfenv>
- C++ Library - <cmath>
- C++ Library - <ccomplex>
- C++ Library - <expected>
- C++ Library - <format>
- C++ Library - <future>
- C++ Library - <flat_set>
- C++ Library - <flat_map>
- C++ Library - <filesystem>
- C++ Library - <generator>
- C++ Library - <initializer_list>
- C++ Library - <latch>
- C++ Library - <memory_resource>
- C++ Library - <mutex>
- C++ Library - <mdspan>
- C++ Library - <optional>
- C++ Library - <print>
- C++ Library - <ratio>
- C++ Library - <scoped_allocator>
- C++ Library - <semaphore>
- C++ Library - <source_location>
- C++ Library - <span>
- C++ Library - <spanstream>
- C++ Library - <stacktrace>
- C++ Library - <stop_token>
- C++ Library - <syncstream>
- C++ Library - <system_error>
- C++ Library - <string_view>
- C++ Library - <stdatomic>
- C++ Library - <variant>
- C++ STL Library Cheat Sheet
- C++ STL - Cheat Sheet
- C++ Programming Resources
- C++ Programming Tutorial
- C++ Useful Resources
- C++ Discussion
C++ Library - <wstreambuf>
Introduction
It is a ase buffer class for streams (wide).
Definition
Below is definition of std::wstreambuf.
typedef basic_streambuf<wchar_t> wstreambuf;
Parameters
charT − Character type.
traits − Character traits class that defines essential properties of the characters used by stream objects.
Public member functions inherited from basic_streambuf
Sr.No. | Locales & Definition |
---|---|
1 | event Type to indicate event type |
2 | event_callback Event callback function type |
Public Member Functions
Sr.No. | Member types & Definition |
---|---|
1 | pubimbue It is an imbue locale |
2 | getloc It is used to get current locale |
Buffer management and positioning
Sr.No. | Buffer management and positioning & Definition |
---|---|
1 | pubsetbuf It is used to set buffer array |
2 | pubseekoff It is used to set internal position pointer to relative position |
3 | pubseekpos It is used to set internal position pointer to absolute position |
4 | pubsync It is used to synchronize stream buffer |
Input functions
Sr.No. | Input functions & Definition |
---|---|
1 | in_avail It is used to get number of character available to read |
2 | snextc It is used to advance to next position and get character |
3 | sbumpc It is used to get current character and advance to next position |
4 | sgetc It is used to get current character |
5 | sgetn It is used to get sequence of characters |
6 | sputbackc It is used to put character back |
7 | sungetcIt is used to decrease current position |
Output functions
Sr.No. | Output & Definition |
---|---|
1 | sputc It is used to put character and advance to next position |
2 | sputn It is used to put sequence of characters |
Protected virtual function overrides
Sr.No. | virtual function & Definition |
---|---|
1 | setbuf It is used to set buffer |
2 | seekoff It is used to set position pointer to relative position |
3 | seekpos It is used to set position pointer to absolute position |
4 | underflow It is used to get character |
5 | pbackfail It is used to put character back |
6 | overflow It is used to put character |
Protected member functions
The following protected member functions provide access to these pointers −
Input sequence
Sr.No. | Input sequence & Definition |
---|---|
1 | eback It is used in pointer to beginning of input sequence |
2 | gptr It is used in pointer to current position of input sequence |
3 | egptr It is used in pointer to end of input sequence |
4 | gbump It is used to get pointer |
5 | setg It is used to set input sequence pointers |
Output sequence (put)
Sr.No. | Output sequence & Definition |
---|---|
1 | pbase It is used in pointer to beginning of output sequence |
2 | pptr It is used in pointer to current position of output sequence |
3 | epptr It is used in pointer to end of output sequence |
4 | pbump It is used to increase put pointer |
5 | setp It is used to set output sequence pointers |