OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine::basic_selfref_iterator< T, Derived > Class Template Reference

Iterator referencing the wrapped iterable type. More...

#include <eagine/iterator.hpp>

Public Types

using reference = const T &
 Alias for reference type.
 
using pointer = const T *
 Alias for pointer type.
 
using iterator_category = std::random_access_iterator_tag
 Iterator caregoty.
 
- Public Types inherited from eagine::basic_iterable_type< T, Derived >
using value_type = T
 Alias for the value type.
 
using difference_type = decltype(std::declval< T >() - std::declval< T >())
 Alias for the difference type.
 

Public Member Functions

constexpr auto operator* () const noexcept -> const T &
 Dereference operator.
 
- Public Member Functions inherited from eagine::basic_iterable_type< T, Derived >
constexpr basic_iterable_type ()=default
 Default constructor.
 
constexpr basic_iterable_type (T value) noexcept
 Initializing constructor.
 
constexpr operator T () const noexcept
 Explicit conversion to the wrapped iterable type.
 
constexpr auto operator++ () noexcept -> auto &
 Pre-increment operator.
 
constexpr auto operator+= (difference_type d) noexcept -> auto &
 Addition operator.
 
constexpr auto operator++ (int) noexcept -> Derived
 Post-increment operator.
 
constexpr auto operator-- () noexcept -> auto &
 Pre-decrement operator.
 
constexpr auto operator-= (difference_type d) noexcept -> auto &
 Subtraction operator.
 
constexpr auto operator-- (int) noexcept -> Derived
 Post-decrement operator.
 

Detailed Description

template<typename T, typename Derived>
class eagine::basic_selfref_iterator< T, Derived >

Iterator referencing the wrapped iterable type.

Template Parameters
Tthe wrapped iterable type.
Derivedthe type derived from this template.
See also
selfref_iterator

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

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).