Documentation Home

is_deleted_node() can be used to check if the node referenced by the iterator is still part of the map, or has been deleted by a call to insert_or_replace() or erase(). If the return value is false then it cannot be relied upon to remain false if other threads may be erasing elements concurrently. Once the return value is true for a given iterator instance, then it will remain true until a new value is assigned to that iterator.

A deleted node may still be accessed through an iterator that refers to it, but it is not reachable from any operation on the map.

bool is_deleted_node() const;

Returns:

true if the element referred to by *this has been removed from the associated jss::concurrent_map instance, false otherwise.

Throws:

Nothing.

Header

#include <jss/concurrent_map.hpp>

See Also