Blender V4.3
bit_ref.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#include "BLI_bit_ref.hh"
6
7#include <ostream>
8
9namespace blender::bits {
10
11std::ostream &operator<<(std::ostream &stream, const BitRef &bit)
12{
13 return stream << (bit ? '1' : '0');
14}
15
16std::ostream &operator<<(std::ostream &stream, const MutableBitRef &bit)
17{
18 return stream << BitRef(bit);
19}
20
21} // namespace blender::bits
std::ostream & operator<<(std::ostream &stream, const BitRef &bit)
Definition bit_ref.cc:11