[#bsl-operator_rshift-08]
= xref:bsl.adoc[bsl]::operator&gt;&gt;
:relfileprefix: ../
:mrdocs:

Right shift operators

== Synopses

Declared in `&lt;bslstl&lowbar;bitset&period;h&gt;`

Extract a whitespace&hyphen;delimited word into a string&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CHAR&lowbar;TYPE,
    class CHAR&lowbar;TRAITS,
    class ALLOCATOR&gt;
std::basic&lowbar;istream&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS&gt;&
xref:bsl/operator_rshift-02.adoc[operator&gt;&gt;](
    std::basic&lowbar;istream&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS&gt;& is,
    xref:bsl/basic_string-0faf.adoc[basic&lowbar;string&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS, ALLOCATOR&gt;]& str);
----

[.small]#xref:bsl/operator_rshift-02.adoc[_» more&period;&period;&period;_]#

Extract a bitset from the specified input stream `is` into `x`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CHAR&lowbar;TYPE,
    class TRAITS,
    std::size&lowbar;t N&gt;
std::basic&lowbar;istream&lt;CHAR&lowbar;TYPE, TRAITS&gt;&
xref:bsl/operator_rshift-0f.adoc[operator&gt;&gt;](
    std::basic&lowbar;istream&lt;CHAR&lowbar;TYPE, TRAITS&gt;& is,
    xref:bsl/bitset.adoc[bitset&lt;N&gt;]& x);
----

[.small]#xref:bsl/operator_rshift-0f.adoc[_» more&period;&period;&period;_]#

== Return Value

* reference to the input stream `is`
* reference to the input stream

== Parameters

[cols="1,4"]
|===
| Name| Description
| *is*
| input stream
| *str*
| string to read into or parse
| *x*
| bitset to populate from the stream
|===


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