Blender V5.3
BLI_fixed_string.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <cstddef>
12
13namespace blender {
14
21template<size_t N> struct FixedString {
22 char data[N];
23
24 constexpr FixedString(const char (&str)[N])
25 {
26 for (size_t i = 0; i < N; i++) {
27 data[i] = str[i];
28 }
29 }
30};
31
32} // namespace blender
#define str(s)
#define N
BMesh Iterators.
constexpr FixedString(const char(&str)[N])