Blender V4.3
BLI_generic_array.hh File Reference
#include "BLI_allocator.hh"
#include "BLI_cpp_type.hh"
#include "BLI_generic_span.hh"

Go to the source code of this file.

Classes

class  blender::GArray< Allocator >
 

Namespaces

namespace  blender
 

Detailed Description

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. It does not support a few things that blender::Array supports:

  • Small object optimization / inline buffer.
  • Exception safety and various more specific constructors.

Definition in file BLI_generic_array.hh.