4#ifndef PHASEII_CONTAINERRANGEGUARD_H
5#define PHASEII_CONTAINERRANGEGUARD_H
10template <
typename T_ContainerCollection>
14template <
typename T_ContainerPtr>
31template <
typename T_RangeType,
typename T_ContainerPtr>
48 T_ContainerPtr &
ptr() {
52 const T_ContainerPtr &
ptr()
const {
T_ContainerPtr & ptr()
return the pointer to the container which contains the element range of this range guard
const T_ContainerPtr & ptr() const
return the pointer to the container which contains the element range of this range guard (read only)
ContainerRangeGuard(T_ContainerPtr ptr)
std::size_t startIndex() const
T_RangeType range() const
create a range for the elements added to the container since the guard was created.
bool empty() const
return true if no elements have been added to the container since the construction of this guard.