CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 namespace catapult {
namespace utils {
27 template<
typename TContainer>
31 using iterator =
typename TContainer::iterator;
81 template<
typename TPredicate>
87 auto pFirstValue = pValue;
92 if (pFirstValue == pValue)
void erase(iterator position)
Removes a single element at position from the container.
Definition: ModificationSafeIterableContainer.h:110
size_t size() const
Gets the number of elements in the container.
Definition: ModificationSafeIterableContainer.h:35
std::function< bool(TArgs...)> predicate
A predicate function.
Definition: functions.h:31
value_type * nextIf(TPredicate predicate)
Definition: ModificationSafeIterableContainer.h:82
iterator m_iter
Definition: ModificationSafeIterableContainer.h:128
TContainer m_container
Definition: ModificationSafeIterableContainer.h:127
bool empty() const
Gets a value indicating whether or not the container is empty.
Definition: ModificationSafeIterableContainer.h:40
typename TContainer::iterator iterator
Definition: ModificationSafeIterableContainer.h:31
value_type * next()
Gets a pointer to the next value or nullptr if this container is empty.
Definition: ModificationSafeIterableContainer.h:67
typename TContainer::value_type value_type
Definition: ModificationSafeIterableContainer.h:30
auto cbegin() const
Returns a const iterator that represents the first entity.
Definition: ModificationSafeIterableContainer.h:46
auto end()
Returns an iterator that represents one past the last entity.
Definition: ModificationSafeIterableContainer.h:61
void clear()
Removes all elements from the container.
Definition: ModificationSafeIterableContainer.h:122
Definition: AddressExtractionExtension.cpp:28
auto cend() const
Returns a const iterator that represents one past the last entity.
Definition: ModificationSafeIterableContainer.h:51
Wraps a container type and provides modification-safe iteration support.
Definition: ModificationSafeIterableContainer.h:28
void push_back(const value_type &value)
Adds a new element at the end of the container.
Definition: ModificationSafeIterableContainer.h:101
auto begin()
Returns an iterator that represents the first entity.
Definition: ModificationSafeIterableContainer.h:56