Namespaces
Variants
Views
Actions

std::basic_ios::basic_ios

From cppreference.com
< cpp‎ | io‎ | basic ios
Revision as of 09:20, 15 February 2013 by Cubbi (Talk | contribs)

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

<td >
protected:
basic_ios();
</td>

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

<td >
public:
explicit basic_ios( std::basic_streambuf<CharT,Traits>* sb );
</td>

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

<td >
private:

basic_ios(const basic_ios&);
public:

basic_ios(const basic_ios& ) = delete;
</td>

<td > (3) </td> <td >
(until C++11)

(since C++11) </td> </tr> Template:ddcl list end

Constructs new basic_ios object.

1) Default constructor. The internal state is not initialized. Template:rlpf must be called before the first use of the object or before destructor, otherwise the behavior is undefined.

2) Initializes the internal state by calling init(sb). The associated stream buffer is set to sb.

3) The copy constructor was declared private: and not defined until C++11 and is declared as deleted in C++11: I/O streams are not CopyConstructible.

Parameters

sb - stream buffer to associate to