Left shift operators

Synopses

Declared in <bdldfp_decimal.h>

Return the bitwise left shift of the specified lhs by rhs bits.

Return true if lhs is less than rhs.

template<
    class CHARTYPE,
    class TRAITS>
bsl::basic_ostream<CHARTYPE, TRAITS>&
operator<<(
    bsl::basic_ostream<CHARTYPE, TRAITS>& stream,
    Decimal32 object);

Return true if lhs is less than rhs.

template<
    class CHARTYPE,
    class TRAITS>
bsl::basic_ostream<CHARTYPE, TRAITS>&
operator<<(
    bsl::basic_ostream<CHARTYPE, TRAITS>& stream,
    Decimal64 object);

Return true if lhs is less than rhs.

template<
    class CHARTYPE,
    class TRAITS>
bsl::basic_ostream<CHARTYPE, TRAITS>&
operator<<(
    bsl::basic_ostream<CHARTYPE, TRAITS>& stream,
    Decimal128 object);

Return Value

  • the bitwise left shift of lhs by rhs bits

  • reference providing modifiable access to stream

Parameters

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

Created with MrDocs