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);
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 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);
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);
Write the specified queue to the specified output stream.
template<class T>
std::ostream&
operator<<(
std::ostream& stream,
Queue<T> const& queue);
Write the specified rhs index clerk to the specified output stream.
std::ostream&
operator<<(
std::ostream& stream,
IndexClerk 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);
Return Value
-
reference providing modifiable access to
stream -
arrayleft‐shifted bynumBits -
reference to
stream -
modifiable reference to
stream -
reference to the modifiable
stream
Parameters
Name |
Description |
stream |
output stream to write to |
array |
array to write |
numBits |
number of positions to shift left |
rhs |
bit array to format |
map |
map whose value is written |
queue |
queue whose value is written |
set |
set whose value is written |
Created with MrDocs