Blender
V4.3
source
blender
blenlib
intern
string_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_string_ref.hh
"
6
7
#include <ostream>
8
9
namespace
blender
{
10
11
std::ostream &
operator<<
(std::ostream &stream,
StringRef
ref)
12
{
13
stream << std::string(ref);
14
return
stream;
15
}
16
17
std::ostream &
operator<<
(std::ostream &stream,
StringRefNull
ref)
18
{
19
stream << std::string(ref.
data
(),
size_t
(ref.
size
()));
20
return
stream;
21
}
22
23
}
// namespace blender
BLI_string_ref.hh
blender::StringRefBase::size
constexpr int64_t size() const
Definition
BLI_string_ref.hh:157
blender::StringRefBase::data
constexpr const char * data() const
Definition
BLI_string_ref.hh:170
blender::StringRefNull
Definition
BLI_string_ref.hh:111
blender::StringRef
Definition
BLI_string_ref.hh:128
blender
Definition
ANIM_action.hh:36
blender::operator<<
std::ostream & operator<<(std::ostream &stream, const eAlpha &space)
Definition
BLI_color.cc:11
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0