nlohmann::detail::json_reverse_iterator
std::reverse_iterator< Base >
json.hpp
typename Base
std::ptrdiff_t using nlohmann::detail::json_reverse_iterator< Base >::difference_type = std::ptrdiff_t difference_type
std::reverse_iterator< Base > using nlohmann::detail::json_reverse_iterator< Base >::base_iterator = std::reverse_iterator<Base> base_iterator

shortcut to the reverse iterator adapter

typename Base::reference using nlohmann::detail::json_reverse_iterator< Base >::reference = typename Base::reference reference

the reference type for the pointed-to element

nlohmann::detail::json_reverse_iterator< Base >::json_reverse_iterator
(const typename base_iterator::iterator_type &it) noexcept
json_reverse_iterator
const typename base_iterator::iterator_type & it

create reverse iterator from iterator

nlohmann::detail::json_reverse_iterator< Base >::json_reverse_iterator
(const base_iterator &it) noexcept
json_reverse_iterator
const base_iterator & it

create reverse iterator from base class

json_reverse_iterator const json_reverse_iterator const nlohmann::detail::json_reverse_iterator< Base >::operator++ (int) operator++ int

post-increment (it++)

json_reverse_iterator & json_reverse_iterator& nlohmann::detail::json_reverse_iterator< Base >::operator++ () operator++

pre-increment (++it)

json_reverse_iterator const json_reverse_iterator const nlohmann::detail::json_reverse_iterator< Base >::operator-- (int) operator-- int

post-decrement (it)

json_reverse_iterator & json_reverse_iterator& nlohmann::detail::json_reverse_iterator< Base >::operator-- () operator--

pre-decrement (it)

json_reverse_iterator & json_reverse_iterator& nlohmann::detail::json_reverse_iterator< Base >::operator+= (difference_type i) operator+= difference_type i

add to iterator

json_reverse_iterator json_reverse_iterator nlohmann::detail::json_reverse_iterator< Base >::operator+ (difference_type i) const operator+ difference_type i

add to iterator

json_reverse_iterator json_reverse_iterator nlohmann::detail::json_reverse_iterator< Base >::operator- (difference_type i) const operator- difference_type i

subtract from iterator

difference_type difference_type nlohmann::detail::json_reverse_iterator< Base >::operator- (const json_reverse_iterator &other) const operator- const json_reverse_iterator & other

return difference

reference reference nlohmann::detail::json_reverse_iterator< Base >::operator[] (difference_type n) const operator[] difference_type n

access to successor

auto auto nlohmann::detail::json_reverse_iterator< Base >::key () const -> decltype(std::declval< Base >().key()) key

return the key of an object iterator

reference reference nlohmann::detail::json_reverse_iterator< Base >::value () const value

return the value of an iterator

NLOHMANN_BASIC_JSON_TPL_DECLARATION

a template for a reverse iterator class

Base

the base iterator type to reverse. Valid types are iterator (to create reverse_iterator) and const_iterator (to create const_reverse_iterator).

The class satisfies the following concept requirements:

- BidirectionalIterator: The iterator that can be moved can be moved in both directions (i.e. incremented and decremented).

- OutputIterator: It is possible to write to the pointed-to element (only if Base is iterator).

version 1.0.0

nlohmann::detail::json_reverse_iterator< Base >
std::reverse_iterator< Base >
nlohmann::detail::json_reverse_iterator< Base >
std::reverse_iterator< Base >
- nlohmann::detail::json_reverse_iterator
  base_iterator
- nlohmann::detail::json_reverse_iterator
  difference_type
- nlohmann::detail::json_reverse_iterator
  json_reverse_iterator
- nlohmann::detail::json_reverse_iterator
  json_reverse_iterator
- nlohmann::detail::json_reverse_iterator
  key
- nlohmann::detail::json_reverse_iterator
  operator+
- nlohmann::detail::json_reverse_iterator
  operator++
- nlohmann::detail::json_reverse_iterator
  operator++
- nlohmann::detail::json_reverse_iterator
  operator+=
- nlohmann::detail::json_reverse_iterator
  operator-
- nlohmann::detail::json_reverse_iterator
  operator-
- nlohmann::detail::json_reverse_iterator
  operator--
- nlohmann::detail::json_reverse_iterator
  operator--
- nlohmann::detail::json_reverse_iterator
  operator[]
- nlohmann::detail::json_reverse_iterator
  reference
- nlohmann::detail::json_reverse_iterator
  value