STL has deque implementation, Boost deque implementation; But both of them uses the STL way of sequence containers (dynamic allocation with allocators).
I am searching for a reliable, fast and statically allocated deque implementation. Which looks something like this:
template<typename T, unsigned int S>
class StaticDeque
{
T m_elements[S];
};
So all elements to be allocated statically.
Note1: I already have STL based solution (using custom allocators which statically allocates data for vector and deque), but I am searching for any better solution (lower execution time).
Note2: I need statically allocated memory because I handle data in a predefined (fast access) area in memory. So object will be declared like this: #pragma DATA_SECTION("fast_memory")
StaticDeque<int, 10> payloads;