safe-list: Add a class to implement a list with safe iterators

Enterprise / Virtualization / SPICE - Frediano Ziglio [redhat.com] - 1 May 2020 05:58 EDT

The reason to not using STL is that our code from how was designed requires the iterator to be safe to the delete of the element pointed by the iterator.

fe0298a2 safe-list: Add a class to implement a list with safe iterators
server/Makefile.am | 1 +
server/meson.build | 1 +
server/safe-list.hpp | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 117 insertions(+)

Upstream: cgit.freedesktop.org


  • Share