BLI: add typedefs for containers that use raw allocators

Those are useful when you have to create containers with static
storage duration. If those would use Blender's guarded allocator,
it would report memory leaks, that are not actually leaks.
This commit is contained in:
2020-07-20 16:00:20 +02:00
parent ed184050b6
commit ccc2a7996b
10 changed files with 81 additions and 27 deletions

View File

@@ -33,9 +33,9 @@ namespace blender::fn {
struct MFSignature {
std::string function_name;
/* Use RawAllocator so that a MultiFunction can have static storage duration. */
Vector<std::string, 4, RawAllocator> param_names;
Vector<MFParamType, 4, RawAllocator> param_types;
Vector<int, 4, RawAllocator> param_data_indices;
RawVector<std::string> param_names;
RawVector<MFParamType> param_types;
RawVector<int> param_data_indices;
int data_index(int param_index) const
{