BlockArraySelector< BLOCK_SIZE_EXPONENT, MEMFLAGS, ALLOCATOR > Class Template Reference Data Structures

#include <blockarray.h>

详细描述

template<Int BLOCK_SIZE_EXPONENT = BLOCKARRAY_DEFAULT_SIZE_EXPONENT, BLOCKARRAYFLAGS MEMFLAGS = BLOCKARRAYFLAGS::NONE, typename ALLOCATOR = DefaultAllocator>
class maxon::BlockArraySelector< BLOCK_SIZE_EXPONENT, 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 BlockArray implementation. For example, ArrayMap by uses an underlying BaseArray by default. If you want to use a BlockArray instead, you'd write

ArrayMap<Int, String, true, DefaultCompare, BlockArraySelector<>> map;
Template Parameters
BLOCK_SIZE_EXPONENT Size of an array block: 2^BLOCK_SIZE_EXPONENT.
MEMFLAGS 使用 BLOCKARRAYFLAGS::NONE unless you know the object can be moved and/or copied.
ALLOCATOR Class for memory allocation.

Public Types

template<typename T >
using  类型 = BlockArray < T, BLOCK_SIZE_EXPONENT, MEMFLAGS, ALLOCATOR >

Member Typedef Documentation

◆  类型

using 类型 = BlockArray <T, BLOCK_SIZE_EXPONENT, MEMFLAGS, ALLOCATOR>