std::basic_streambuf<CharT,Traits>::pbackfail

This function can only be called if any of the following condition is satisfied:

# Declarations

protected:
virtual int_type pbackfail( int_type c = Traits::eof() );

# Parameters

# Return value

Traits::eof() in case of failure, some other value to indicate success. The base class version always fails.

# Example

This section is incompleteReason: no example

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 32C++98the calling condition ’traits::eq(*gptr(),traits::to_char_type(c))returns false’ did not match the description of sputbackc()corrected to matchthe description

# See also