Left shift operators

Synopses

Declared in <bdldfp_decimal.h>

Return an Uint128 value equal to the value of a bitwise left shift of the specified lhs 128‐bit integer shifted by the specified rhs value. The behavior is undefined unless 0 <= rhs < 128.

Write the value of the specified object to the specified output stream in a single line format as described in the IEEE‐754 2008 standard (5.12 Details of conversions between floating point numbers and external character sequences), and return a reference providing modifiable access to stream. If stream is not valid on entry, this operation has no effect.

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

Write the value of the specified object to the specified output stream in a single line format as described in the IEEE‐754 2008 standard (5.12 Details of conversions between floating point numbers and external character sequences), and return a reference providing modifiable access to stream. If stream is not valid on entry, this operation has no effect.

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

Write the value of the specified object to the specified output stream in a single line format as described in the IEEE‐754 2008 standard (5.12 Details of conversions between floating point numbers and external character sequences), and return a reference providing modifiable access to stream. If stream is not valid on entry, this operation has no effect.

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

Created with MrDocs