LocalGuidance
A library that generates velocity references to follow a path.
SmartPointerIterator.hpp File Reference
#include <type_traits>
#include <memory>
#include "std_utils/containers/ObserverPointer.hpp"
#include "traits.hpp"
Include dependency graph for SmartPointerIterator.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  std_utils::smart_pointer_iterator< base_iterator_, element_type_ >
 An iterator for smart pointers which skips the smart pointer layer by exposing a pointer to the internal type. Can used in range-based for loops. More...
 
class  std_utils::smart_pointer_pair_iterator< base_iterator_, element_type_ >
 

Namespaces

 std_utils
 

Functions

template<typename element_type_ , typename iterator_ >
smart_pointer_iterator< iterator_, element_type_ > std_utils::dereference_iterator (iterator_ t, typename std::enable_if< std_utils::traits::is_smart_ptr< typename iterator_::value_type >::value >::type *=0)
 Get a smart_pointer_iterator from an iterator to an element of a container of smart pointers. More...
 
template<typename element_type_ , typename iterator_ >
smart_pointer_pair_iterator< iterator_, element_type_ > std_utils::dereference_iterator (iterator_ t, typename std::enable_if< std_utils::traits::is_pair_of_smart_ptr< typename iterator_::value_type >::value >::type *=0)
 Get a smart_pointer_iterator from an iterator to an element of a container of smart pointers. More...
 

Detailed Description

Author
Dario Bellicoso, Gabriel Hottiger
Date
Jan 25, 2018