Blender V4.3
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
9namespace blender {
10
11std::ostream &operator<<(std::ostream &stream, StringRef ref)
12{
13 stream << std::string(ref);
14 return stream;
15}
16
17std::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
constexpr int64_t size() const
constexpr const char * data() const
std::ostream & operator<<(std::ostream &stream, const eAlpha &space)
Definition BLI_color.cc:11