BaseArraySelector< MINCHUNKSIZE, MEMFLAGS, ALLOCATOR > Class Template Reference

#include <basearray.h>

Detailed Description

template<Int MINCHUNKSIZE = BASEARRAY_DEFAULT_CHUNK_SIZE, BASEARRAYFLAGS MEMFLAGS = BASEARRAYFLAGS::NONE, typename ALLOCATOR = DefaultAllocator>
class maxon::BaseArraySelector< MINCHUNKSIZE, MEMFLAGS, ALLOCATOR >

This selector class is used for template parameters which select the array implementation to use. It will then instruct the template to use the BaseArray implementation. For example, ArrayMap by default uses an underlying BaseArray with default settings. If you want to change those default settings, you'd write

ArrayMap<Int, String, true, DefaultCompare, BaseArraySelector<60>> map;
Template Parameters
MINCHUNKSIZEThe minimum number of elements upon array creation.
MEMFLAGSUse BASEARRAYFLAGS::NONE unless you know the object can be moved and/or copied.
ALLOCATORClass for memory allocation.

Public Types

template<typename T >
using Type = BaseArray< T, MINCHUNKSIZE, MEMFLAGS, ALLOCATOR >
 

Member Typedef Documentation

◆ Type

using Type = BaseArray<T, MINCHUNKSIZE, MEMFLAGS, ALLOCATOR>