mc_rtc::SharedPtrVectorIterator< T > Struct Template Reference

#include <mc_rtc/iterators.h>

Inheritance diagram for mc_rtc::SharedPtrVectorIterator< T >:
Collaboration diagram for mc_rtc::SharedPtrVectorIterator< T >:

Public Types

using iterator_t = typename std::vector< std::shared_ptr< T > >::iterator
 
using pointer = T *
 
using reference = T &
 

Public Member Functions

 SharedPtrVectorIterator (iterator_t it) noexcept
 
reference operator* () const noexcept
 
pointer operator-> () const noexcept
 

Detailed Description

template<typename T>
struct mc_rtc::SharedPtrVectorIterator< T >

An iterator over std::vector<std::shared_ptr<T>> but it exposes T references/pointers instead of the shared pointer

Member Typedef Documentation

◆ iterator_t

template<typename T >
using mc_rtc::SharedPtrVectorIterator< T >::iterator_t = typename std::vector<std::shared_ptr<T> >::iterator

◆ pointer

template<typename T >
using mc_rtc::SharedPtrVectorIterator< T >::pointer = T *

◆ reference

template<typename T >
using mc_rtc::SharedPtrVectorIterator< T >::reference = T &

Constructor & Destructor Documentation

◆ SharedPtrVectorIterator()

template<typename T >
mc_rtc::SharedPtrVectorIterator< T >::SharedPtrVectorIterator ( iterator_t  it)
inlinenoexcept

Member Function Documentation

◆ operator*()

template<typename T >
reference mc_rtc::SharedPtrVectorIterator< T >::operator* ( ) const
inlinenoexcept

◆ operator->()

template<typename T >
pointer mc_rtc::SharedPtrVectorIterator< T >::operator-> ( ) const
inlinenoexcept

The documentation for this struct was generated from the following file: