Right shift operators

Synopses

Declared in <bdldfp_decimal.h>

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

Return true if lhs is greater than rhs.

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

Return true if lhs is greater than rhs.

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

Return true if lhs is greater than rhs.

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

Return Value

  • the bitwise right 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 to receive the parsed value

Created with MrDocs