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 | Use BLOCKARRAYFLAGS::NONE unless you know the object can be moved and/or copied. |
ALLOCATOR | Class for memory allocation. |