[#BufferedReader-2constructor]
= xref:BufferedReader.adoc[BufferedReader]::BufferedReader
:relfileprefix: ../
:mrdocs:

Requires stream ownership to prevent leaving the stream at an unexpected position after buffered reads&period;

== Synopsis

Declared in `&lt;streams&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
BufferedReader(
    S&& stream,
    size&lowbar;t size = 1 &lt;&lt; 16)
requires std&colon;&colon;is&lowbar;rvalue&lowbar;reference&lowbar;v&lt;S&amp;&amp;&gt;;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *stream*
| Underlying stream to read from&semi; ownership is taken via rvalue reference&period;
| *size*
| Size in bytes of the internal read buffer&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
