Namespaces
Variants
Views
Actions

std::basic_ios::rdbuf

From cppreference.com
< cpp‎ | io‎ | basic ios
Revision as of 20:43, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dcl ">

<td >
std::basic_streambuf<CharT,Traits>* rdbuf() const;
</td>

<td > (1) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">

<td >
std::basic_streambuf<CharT,Traits>* rdbuf( std::basic_streambuf<CharT,Traits>* sb );
</td>

<td > (2) </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

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

Parameters

sb - stream buffer to associate to

Return value

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

Exceptions

(none)

Example

See also

Template:cpp/io/basic ios/dcl list set rdbuf