Left shift operators

Synopses

Declared in <bdlc_bitarray.h>

Write the specified queue to the specified output stream.

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

Write array to stream in a single‐line format.

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

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);

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

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

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);

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);

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

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

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);

Return Value

  • reference to the modifiable stream

  • reference providing modifiable access to stream

  • modifiable reference to stream

  • array left‐shifted by numBits

  • reference to stream

Parameters

Name

Description

stream

output stream to write to

queue

queue whose value is written

array

array to write

numBits

number of positions to shift left

rhs

bit array to format

set

set whose value is written

map

map whose value is written

Created with MrDocs