CAF
0.17.6
|
The base class for all stream buffer implementations. More...
#include <streambuf.hpp>
Inherits std::basic_streambuf< char, std::char_traits< char > >.
Public Types | |
using | base = std::basic_streambuf< CharT, Traits > |
using | pos_type = typename base::pos_type |
using | off_type = typename base::off_type |
Protected Member Functions | |
template<class T = int> | |
std::enable_if< sizeof(T)==4 >::type | safe_pbump (std::streamsize n) |
The standard only defines pbump(int), which can overflow on 64-bit architectures. More... | |
template<class T = int> | |
std::enable_if< sizeof(T)==8 >::type | safe_pbump (std::streamsize n) |
template<class T = int> | |
std::enable_if< sizeof(T)==4 >::type | safe_gbump (std::streamsize n) |
template<class T = int> | |
std::enable_if< sizeof(T)==8 >::type | safe_gbump (std::streamsize n) |
pos_type | default_seekoff (off_type off, std::ios_base::seekdir dir, std::ios_base::openmode which) |
pos_type | default_seekpos (pos_type pos, std::ios_base::openmode which) |
The base class for all stream buffer implementations.
|
protected |
The standard only defines pbump(int), which can overflow on 64-bit architectures.
All stream buffer implementations should therefore use these function instead. For a detailed discussion, see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47921