Blender
V5.0
source
blender
blenlib
intern
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
13
namespace
blender::bits
{
14
15
std::ostream &
operator<<
(std::ostream &stream,
const
BitRef
&bit)
16
{
17
return
stream << (bit ?
'1'
:
'0'
);
18
}
19
20
std::ostream &
operator<<
(std::ostream &stream,
const
MutableBitRef
&bit)
21
{
22
return
stream <<
BitRef
(bit);
23
}
24
25
}
// namespace blender::bits
BLI_bit_ref.hh
blender::bits::BitRef
Definition
BLI_bit_ref.hh:84
blender::bits::MutableBitRef
Definition
BLI_bit_ref.hh:125
blender::bits
Definition
BLI_bit_bool_conversion.hh:14
blender::bits::operator<<
std::ostream & operator<<(std::ostream &stream, const BitRef &bit)
Definition
bit_ref.cc:15
Generated on
for Blender by
doxygen
1.16.1