Open Search
    BlockArraySelector< BLOCK_SIZE_EXPONENT, MEMFLAGS, ALLOCATOR > Class Template Reference

    #include <blockarray.h>

    Detailed Description

    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_EXPONENTSize of an array block: 2^BLOCK_SIZE_EXPONENT.
    MEMFLAGSUse BLOCKARRAYFLAGS::NONE unless you know the object can be moved and/or copied.
    ALLOCATORClass for memory allocation.

    Public Types

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

    Member Typedef Documentation

    ◆ Type

    using Type = BlockArray<T, BLOCK_SIZE_EXPONENT, MEMFLAGS, ALLOCATOR>