|
Sen API
Sen Libraries
|
A range adapter to combine a range with lock. More...
#include <iterator_adapters.h>
Public Member Functions | |
| template<typename ContainerType> | |
| LockedRangeAdapter (ContainerType &container, MutexType &m) | |
| LockedRangeAdapter (IteratorType begin, IteratorType end, MutexType &m) | |
| IteratorType | begin () const noexcept(std::is_nothrow_copy_constructible_v< IteratorType >) |
| IteratorType | end () const noexcept(std::is_nothrow_copy_constructible_v< IteratorType >) |
A range adapter to combine a range with lock.
This adapter ties together a lock of the specified LockType with the given range (i.e., the begin/end iterator pair). This way, the adapter ensures that the lock is held during iteration.
The lock is taken during construction and release during destructions of this adapter.
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |