Namespaces
Variants
Views
Actions

std::basic_ios::rdbuf

From cppreference.com
std::basic_streambuf<CharT,Traits>* rdbuf() const;
(1)
std::basic_streambuf<CharT,Traits>* rdbuf( std::basic_streambuf<CharT,Traits>* sb );
(2)

Manages the associated stream buffer.

1) Returns the associated stream buffer. If there is no associated stream buffer, returns NULL.

2) Sets the associated stream buffer to sb. The error state of sb is cleared by calling sb.clear(). Returns the associated stream buffer before the operation. If there is no associated stream buffer, returns NULL.

Contents

[edit] Parameters

sb - stream buffer to associate to

[edit] Return value

The associated stream buffer, or NULL if there was no associated stream buffer.

[edit] Exceptions

(none)

[edit] Example

[edit] See also

replaces the rdbuf without clearing its error state
(protected member function) [edit]