I need to use a data structure which can start the first index of an array from a nagtive value.
I have searched the MTL library, and bltiz lib, but it seems that they doesn't support this kind of vecotr.
Could you please give me some suggestions.
One way would be with a custom class to represent the collection. Use a vector as the base collection, then overload the index operator to accept a negative value and offset it to find the correct positive value in the base collection.