STL has a deque implementation ; Boost has a deque implementation ; But both of them use the STL path of the sequence containers (dynamic allocation using dispensers).
I am looking for a reliable, fast and statically dedicated deque implementation. Which looks something like this:
template<typename T, unsigned int S>
class StaticDeque
{
T m_elements[S];
};
So, all the elements that need to be assigned statically.
Note 1: I already have a solution based on STL (using custom allocators that statically distribute data for the vector and deck), but I'm looking for any better solution (shorter runtime).
Note2: I need statically distributed memory, because I process data in a predefined shortcut in memory. Thus, the object will be declared as follows:#pragma DATA_SECTION("fast_memory") StaticDeque<int, 10> payloads;
Yousf source
share