Blender
V4.3
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
5
#include "
BLI_bit_ref.hh
"
6
7
#include <ostream>
8
9
namespace
blender::bits
{
10
11
std::ostream &
operator<<
(std::ostream &stream,
const
BitRef
&bit)
12
{
13
return
stream << (bit ?
'1'
:
'0'
);
14
}
15
16
std::ostream &
operator<<
(std::ostream &stream,
const
MutableBitRef
&bit)
17
{
18
return
stream <<
BitRef
(bit);
19
}
20
21
}
// namespace blender::bits
BLI_bit_ref.hh
blender::bits::BitRef
Definition
BLI_bit_ref.hh:85
blender::bits::MutableBitRef
Definition
BLI_bit_ref.hh:126
blender::bits
Definition
BLI_bit_bool_conversion.hh:10
blender::bits::operator<<
std::ostream & operator<<(std::ostream &stream, const BitRef &bit)
Definition
bit_ref.cc:11
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0