1- // This file is auto-generated. Do not edit manually.
1+
2+ struct Person {
3+ const int32_t Age;
4+ const std::u32string_view Name;
5+ const Person* Other;
6+
7+ Person(const int32_t age, const std::u32string_view name, const Person* other) : Age(age), Name(name), Other(other) { }
8+ };
9+
10+ // This file is auto-generated. Do not edit manually.
211// Structure: Array
312#pragma once
413#include <array>
514#include <cstdint>
615#include <limits>
716#include <string_view>
817
9- class StructSupportTest final
18+ class ArrayStructure_Int32_3 final
1019{
1120static constexpr std::array<int32_t, 3> keys = {
1221 1, 2, 3
@@ -26,18 +35,10 @@ public:
2635 }
2736 return false;
2837 }
29- struct Person {
30- const int32_t Age;
31- const std::u32string_view Name;
32- const Person* Other;
33-
34- Person(const int32_t age, const std::u32string_view name, const Person* other) : Age(age), Name(name), Other(other) { }
35- };
36-
37- static std::array<StructSupportTest::Person*, 3> values;
38+ static std::array<Person*, 3> values;
3839
3940 [[nodiscard]]
40- static bool try_lookup(const int32_t key, Person*& value) noexcept
41+ static bool try_lookup(const int32_t key, const Person*& value) noexcept
4142 {
4243 if (key < 1 || key > 3)
4344 return false;
@@ -50,6 +51,8 @@ struct Person {
5051 return true;
5152 }
5253 }
54+
55+ value = nullptr;
5356 return false;
5457 }
5558
@@ -58,13 +61,13 @@ struct Person {
5861 static constexpr int32_t max_key = 3;
5962
6063public:
61- StructSupportTest () = delete;
62- StructSupportTest (const StructSupportTest &) = delete;
63- StructSupportTest & operator=(const StructSupportTest &) = delete;
64- StructSupportTest(StructSupportTest &&) = delete;
65- StructSupportTest & operator=(StructSupportTest &&) = delete;
64+ ArrayStructure_Int32_3 () = delete;
65+ ArrayStructure_Int32_3 (const ArrayStructure_Int32_3 &) = delete;
66+ ArrayStructure_Int32_3 & operator=(const ArrayStructure_Int32_3 &) = delete;
67+ ArrayStructure_Int32_3(ArrayStructure_Int32_3 &&) = delete;
68+ ArrayStructure_Int32_3 & operator=(ArrayStructure_Int32_3 &&) = delete;
6669};
67- std::array<StructSupportTest:: Person*, 3> StructSupportTest ::values = {
70+ std::array<Person*, 3> ArrayStructure_Int32_3 ::values = {
6871 new Person(1, U"Bob", new Person(4, U"Anna", nullptr)),
6972 new Person(2, U"Billy", nullptr),
7073 new Person(3, U"Bibi", nullptr),
0 commit comments