Blender V5.0
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
8
9#include "BLI_bit_ref.hh"
10
11#include <ostream>
12
13namespace blender::bits {
14
15std::ostream &operator<<(std::ostream &stream, const BitRef &bit)
16{
17 return stream << (bit ? '1' : '0');
18}
19
20std::ostream &operator<<(std::ostream &stream, const MutableBitRef &bit)
21{
22 return stream << BitRef(bit);
23}
24
25} // namespace blender::bits
std::ostream & operator<<(std::ostream &stream, const BitRef &bit)
Definition bit_ref.cc:15