Changeset View
Changeset View
Standalone View
Standalone View
source/blender/functions/FN_generic_array.hh
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||||
| #pragma once | #pragma once | ||||
| /** \file | /** \file | ||||
| * \ingroup fn | * \ingroup fn | ||||
| * | * | ||||
| * This is a generic counterpart to #blender::Array, used when the type is not known at runtime. | * This is a generic counterpart to #blender::Array, used when the type is not known at runtime. | ||||
| * | * | ||||
| * `GArray` should generally only be used for passing data around in dynamic contexts. | * `GArray` should generally only be used for passing data around in dynamic contexts. | ||||
| * It does not support a few things that #blender::Array supports: | * It does not support a few things that #blender::Array supports: | ||||
| * - Small object optimization / inline buffer. | * - Small object optimization / inline buffer. | ||||
| * - Exception safety and various more specific constructors. | * - Exception safety and various more specific constructors. | ||||
| */ | */ | ||||
| #include "BLI_allocator.hh" | #include "BLI_allocator.hh" | ||||
| #include "BLI_cpp_type.hh" | |||||
| #include "FN_cpp_type.hh" | |||||
| #include "FN_generic_span.hh" | #include "FN_generic_span.hh" | ||||
| namespace blender::fn { | namespace blender::fn { | ||||
| template< | template< | ||||
| /** | /** | ||||
| * The allocator used by this array. Should rarely be changed, except when you don't want that | * The allocator used by this array. Should rarely be changed, except when you don't want that | ||||
| * MEM_* functions are used internally. | * MEM_* functions are used internally. | ||||
| ▲ Show 20 Lines • Show All 230 Lines • Show Last 20 Lines | |||||