26 lines
454 B
C++
26 lines
454 B
C++
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup bli
|
|
*/
|
|
|
|
#include "BLI_bit_ref.hh"
|
|
|
|
#include <ostream>
|
|
|
|
namespace blender::bits {
|
|
|
|
std::ostream &operator<<(std::ostream &stream, const BitRef &bit)
|
|
{
|
|
return stream << (bit ? '1' : '0');
|
|
}
|
|
|
|
std::ostream &operator<<(std::ostream &stream, const MutableBitRef &bit)
|
|
{
|
|
return stream << BitRef(bit);
|
|
}
|
|
|
|
} // namespace blender::bits
|