Does a standard implementation of a Circular List exist for C++?

There’s no standard circular list.

However, there is a circular buffer in Boost, which might be helpful.

If you don’t need anything fancy, you might consider just using a vector and accessing the elements with an index. You can just mod your index with the size of the vector to achieve much the same thing as a circular list.

Leave a Comment