libcopp 2.3.1
|
#include <iterator_guard.h>
Public Types | |
using | iterator_type = typename std::conditional< IsConst, typename ContainerType::const_iterator, typename ContainerType::iterator >::type |
using | reference = typename std::iterator_traits< iterator_type >::reference |
using | pointer = typename std::iterator_traits< iterator_type >::pointer |
using | value_type = typename std::iterator_traits< iterator_type >::value_type |
Public Member Functions | |
LIBCOPP_UTIL_FORCEINLINE void | set (const ContainerType &owner, iterator_type v) LIBCOPP_MACRO_NOEXCEPT |
LIBCOPP_UTIL_FORCEINLINE void | reset (const ContainerType &owner) LIBCOPP_MACRO_NOEXCEPT |
LIBCOPP_UTIL_FORCEINLINE iterator_type | release (const ContainerType &owner) |
LIBCOPP_UTIL_FORCEINLINE bool | valid (const ContainerType &owner) const LIBCOPP_MACRO_NOEXCEPT |
LIBCOPP_UTIL_FORCEINLINE reference | operator* () const LIBCOPP_MACRO_NOEXCEPT |
LIBCOPP_UTIL_FORCEINLINE pointer | operator-> () const LIBCOPP_MACRO_NOEXCEPT |
LIBCOPP_UTIL_FORCEINLINE | iterator_guard () LIBCOPP_MACRO_NOEXCEPT |
Private Attributes | |
const ContainerType * | owner_ |
iterator_type | iter_ |
Definition at line 15 of file iterator_guard.h.
using util::iterator_guard< ContainerType, IsConst >::iterator_type = typename std::conditional<IsConst, typename ContainerType::const_iterator, typename ContainerType::iterator>::type |
Definition at line 17 of file iterator_guard.h.
using util::iterator_guard< ContainerType, IsConst >::pointer = typename std::iterator_traits<iterator_type>::pointer |
Definition at line 21 of file iterator_guard.h.
using util::iterator_guard< ContainerType, IsConst >::reference = typename std::iterator_traits<iterator_type>::reference |
Definition at line 20 of file iterator_guard.h.
using util::iterator_guard< ContainerType, IsConst >::value_type = typename std::iterator_traits<iterator_type>::value_type |
Definition at line 22 of file iterator_guard.h.
|
inline |
Definition at line 54 of file iterator_guard.h.
|
inline |
Definition at line 50 of file iterator_guard.h.
|
inline |
Definition at line 52 of file iterator_guard.h.
|
inline |
Definition at line 34 of file iterator_guard.h.
|
inline |
Definition at line 29 of file iterator_guard.h.
|
inline |
Definition at line 24 of file iterator_guard.h.
|
inline |
Definition at line 42 of file iterator_guard.h.
|
private |
Definition at line 58 of file iterator_guard.h.
|
private |
Definition at line 57 of file iterator_guard.h.