BaseArraySelector< MINCHUNKSIZE, MEMFLAGS, ALLOCATOR > Class Template Reference Data Structures

#include <basearray.h>

详细描述

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
MINCHUNKSIZE The minimum number of elements upon array creation.
MEMFLAGS 使用 BASEARRAYFLAGS::NONE unless you know the object can be moved and/or copied.
ALLOCATOR Class for memory allocation.

Public Types

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

Member Typedef Documentation

◆  类型

using 类型 = BaseArray <T, MINCHUNKSIZE, MEMFLAGS, ALLOCATOR>