Default accessor functor for an index based iterator. Retrieves a reference R from a container C using size type S.
More...
#include <Workspace/Application/LanguageUtils/indexbasediterator.h>
|
std::conditional< IsConst, constValueType &, ValueType & >::type | operator() (typename std::conditional< IsConst, const ContainerType &, ContainerType & >::type container, SizeType index) const |
|
template<typename ContainerType, bool IsConst, typename SizeType, typename ValueType>
struct CSIRO::Application::IndexBasedIteratorPrivate::DefaultAccessor< ContainerType, IsConst, SizeType, ValueType >
- Template Parameters
-
ContainerType | The container type to index into |
IsConst | Whether the accessor needs to access a const method or not. |
SizeType | The size_type of the container in question |
ValueType | The value type of contained within C. |
◆ operator()()
std::conditional< IsConst, constValueType &, ValueType & >::type operator() |
( |
typename std::conditional< IsConst, const ContainerType &, ContainerType & >::type |
container, |
|
|
SizeType |
index |
|
) |
| const |
|
inline |