BloombergLP::bdlc::operator<<

Left shift operators

Synopses

Declared in <bdlc_bitarray.h>

Write array to stream in a single-line format.

template<class TYPE>
std::ostream&
operator<<(
    std::ostream& stream,
    PackedIntArray<TYPE> const& array);
» more...

Return array left-shifted by numBits, filling low bits with zeros.

bdlc::BitArray
operator<<(
    BitArray const& array,
    std::size_t numBits);
» more...

Format the bits in the specified rhs bit array to the specified output stream in a single-line format, and return a reference to stream.

std::ostream&
operator<<(
    std::ostream& stream,
    BitArray const& rhs);
» more...

Write the value of the specified array to the specified output stream in a single-line format, and return a reference providing modifiable access to stream.

template<class TYPE>
std::ostream&
operator<<(
    std::ostream& stream,
    CompactedArray<TYPE> const& array);
» more...

Write the value of map to the specified output stream.

template<
    class KEY,
    class VALUE,
    class HASH,
    class EQUAL>
std::ostream&
operator<<(
    std::ostream& stream,
    FlatHashMap<KEY, VALUE, HASH, EQUAL> const& map);
» more...

Write the specified queue to the specified output stream.

template<class T>
std::ostream&
operator<<(
    std::ostream& stream,
    Queue<T> const& queue);
» more...

Write the specified rhs index clerk to the specified output stream.

std::ostream&
operator<<(
    std::ostream& stream,
    IndexClerk const& rhs);
» more...

Write the specified set to the specified output stream.

template<
    class KEY,
    class HASH,
    class EQUAL>
std::ostream&
operator<<(
    std::ostream& stream,
    FlatHashSet<KEY, HASH, EQUAL> const& set);
» more...

Return Value

  • reference providing modifiable access to stream
  • array left-shifted by numBits
  • reference to stream
  • modifiable reference to stream
  • reference to the modifiable stream

Parameters

NameDescription
streamoutput stream to write to
arrayarray to write
numBitsnumber of positions to shift left
rhsbit array to format
mapmap whose value is written
queuequeue whose value is written
setset whose value is written