60 template <
typename... Args>
61 std::pair<typename std::set<T>::iterator,
bool>
emplace(Args&&... args)
63 std::lock_guard<std::recursive_mutex> lock(this->
_mutex);
69 return this->
_container.emplace(std::forward<Args>(args)...);
82 std::lock_guard<std::recursive_mutex> lock(this->
_mutex);
102 std::lock_guard<std::recursive_mutex> lock(this->
_mutex);
121 std::lock_guard<std::recursive_mutex> lock(this->
_mutex);
T _container
Definition thread_safe_container.hpp:156
std::atomic< bool > _is_being_modified
Definition thread_safe_container.hpp:157
thread_safe_container()=default
std::recursive_mutex _mutex
Definition thread_safe_container.hpp:155
Thread-safe wrapper for std::set.
Definition thread_safe_set.hpp:47
std::pair< typename std::set< T >::iterator, bool > emplace(Args &&... args)
Constructs an element in-place within the underlying std::set.
Definition thread_safe_set.hpp:61
bool insert(const T &value)
Inserts a copy of value into the underlying std::set.
Definition thread_safe_set.hpp:80
bool erase(const T &value)
Erases a value from the set if it exists.
Definition thread_safe_set.hpp:100
bool contains(const T &value) const
Checks whether the specified value is contained in the set.
Definition thread_safe_set.hpp:119
A Cbeam-specific runtime error that also acts like std::runtime_error.
Definition runtime_error.hpp:46
A helper that sets the given variable to a new value, and restores the original value on destruction.
Definition scoped_set.hpp:61
Offers advanced container types with unique approaches to stability and interprocess sharing....
Definition buffer.hpp:44