SIRIUS 7.5.0
Electronic structure library and applications
|
a template for a reverse iterator class More...
#include <nlohmann_json.hpp>
Inherits std::reverse_iterator< Base >.
Public Types | |
using | difference_type = std::ptrdiff_t |
using | base_iterator = std::reverse_iterator< Base > |
shortcut to the reverse iterator adapter More... | |
using | reference = typename Base::reference |
the reference type for the pointed-to element More... | |
Public Member Functions | |
json_reverse_iterator (const typename base_iterator::iterator_type &it) noexcept | |
create reverse iterator from iterator More... | |
json_reverse_iterator (const base_iterator &it) noexcept | |
create reverse iterator from base class More... | |
json_reverse_iterator | operator++ (int) & |
post-increment (it++) More... | |
json_reverse_iterator & | operator++ () |
pre-increment (++it) More... | |
json_reverse_iterator | operator-- (int) & |
post-decrement (it–) More... | |
json_reverse_iterator & | operator-- () |
pre-decrement (–it) More... | |
json_reverse_iterator & | operator+= (difference_type i) |
add to iterator More... | |
json_reverse_iterator | operator+ (difference_type i) const |
add to iterator More... | |
json_reverse_iterator | operator- (difference_type i) const |
subtract from iterator More... | |
difference_type | operator- (const json_reverse_iterator &other) const |
return difference More... | |
reference | operator[] (difference_type n) const |
access to successor More... | |
auto | key () const -> decltype(std::declval< Base >().key()) |
return the key of an object iterator More... | |
reference | value () const |
return the value of an iterator More... | |
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). |
@requirement The class satisfies the following concept requirements:
Definition at line 13590 of file nlohmann_json.hpp.
using detail::json_reverse_iterator< Base >::difference_type = std::ptrdiff_t |
Definition at line 13593 of file nlohmann_json.hpp.
using detail::json_reverse_iterator< Base >::base_iterator = std::reverse_iterator<Base> |
shortcut to the reverse iterator adapter
Definition at line 13595 of file nlohmann_json.hpp.
using detail::json_reverse_iterator< Base >::reference = typename Base::reference |
the reference type for the pointed-to element
Definition at line 13597 of file nlohmann_json.hpp.
|
inlineexplicitnoexcept |
create reverse iterator from iterator
Definition at line 13600 of file nlohmann_json.hpp.
|
inlineexplicitnoexcept |
create reverse iterator from base class
Definition at line 13604 of file nlohmann_json.hpp.
|
inline |
post-increment (it++)
Definition at line 13607 of file nlohmann_json.hpp.
|
inline |
pre-increment (++it)
Definition at line 13613 of file nlohmann_json.hpp.
|
inline |
post-decrement (it–)
Definition at line 13619 of file nlohmann_json.hpp.
|
inline |
pre-decrement (–it)
Definition at line 13625 of file nlohmann_json.hpp.
|
inline |
add to iterator
Definition at line 13631 of file nlohmann_json.hpp.
|
inline |
add to iterator
Definition at line 13637 of file nlohmann_json.hpp.
|
inline |
subtract from iterator
Definition at line 13643 of file nlohmann_json.hpp.
|
inline |
return difference
Definition at line 13649 of file nlohmann_json.hpp.
|
inline |
access to successor
Definition at line 13655 of file nlohmann_json.hpp.
|
inline |
return the key of an object iterator
Definition at line 13661 of file nlohmann_json.hpp.
|
inline |
return the value of an iterator
Definition at line 13668 of file nlohmann_json.hpp.