[#BloombergLP-bdldfp-operator_lshift-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::operator&lt;&lt;
:relfileprefix: ../../
:mrdocs:

Left shift operators

== Synopses

Declared in `&lt;bdldfp&lowbar;decimal&period;h&gt;`

Return the bitwise left shift of the specified `lhs` by `rhs` bits&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdldfp/Uint128.adoc[bdldfp::Uint128]
xref:BloombergLP/bdldfp/operator_lshift-0e.adoc[operator&lt;&lt;](
    xref:BloombergLP/bdldfp/Uint128.adoc[Uint128] lhs,
    int rhs);
----

[.small]#xref:BloombergLP/bdldfp/operator_lshift-0e.adoc[_» more&period;&period;&period;_]#

Return `true` if `lhs` is less than `rhs`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CHARTYPE,
    class TRAITS&gt;
bsl::basic&lowbar;ostream&lt;CHARTYPE, TRAITS&gt;&
xref:BloombergLP/bdldfp/operator_lshift-05.adoc[operator&lt;&lt;](
    bsl::basic&lowbar;ostream&lt;CHARTYPE, TRAITS&gt;& stream,
    xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] object);
----

[.small]#xref:BloombergLP/bdldfp/operator_lshift-05.adoc[_» more&period;&period;&period;_]#

Return `true` if `lhs` is less than `rhs`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CHARTYPE,
    class TRAITS&gt;
bsl::basic&lowbar;ostream&lt;CHARTYPE, TRAITS&gt;&
xref:BloombergLP/bdldfp/operator_lshift-02.adoc[operator&lt;&lt;](
    bsl::basic&lowbar;ostream&lt;CHARTYPE, TRAITS&gt;& stream,
    xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] object);
----

[.small]#xref:BloombergLP/bdldfp/operator_lshift-02.adoc[_» more&period;&period;&period;_]#

Return `true` if `lhs` is less than `rhs`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CHARTYPE,
    class TRAITS&gt;
bsl::basic&lowbar;ostream&lt;CHARTYPE, TRAITS&gt;&
xref:BloombergLP/bdldfp/operator_lshift-09.adoc[operator&lt;&lt;](
    bsl::basic&lowbar;ostream&lt;CHARTYPE, TRAITS&gt;& stream,
    xref:BloombergLP/bdldfp/Decimal128.adoc[Decimal128] object);
----

[.small]#xref:BloombergLP/bdldfp/operator_lshift-09.adoc[_» more&period;&period;&period;_]#

== Return Value

* the bitwise left shift of `lhs` by `rhs` bits
* reference providing modifiable access to `stream`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| value to shift
| *rhs*
| number of bits to shift
| *stream*
| stream to read from or write to
| *object*
| object whose value is written
|===


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