xentara-utils v1.2.1
Xentara utilities library
|
#include <json/decoder/String.hpp>
Public Types | |
using | value_type = const char |
The value type. | |
using | difference_type = std::ptrdiff_t |
Dummy type for non-existend difference type. | |
using | reference = const char & |
A reference to a value. | |
using | pointer = const char * |
A pointer to a value. | |
using | iterator_concept = std::input_iterator_tag |
The iterator concept. | |
using | iterator_category = iterator_concept |
The iterator category, for use in pre-C++20 code. | |
Public Member Functions | |
Iterator () noexcept=default | |
Default constructor. | |
Iterator (std::default_sentinel_t) noexcept | |
Conversion constructor for a sentinel. | |
auto | operator== (const Iterator &rhs) const -> bool |
Equality operator. | |
auto | operator++ () -> Iterator & |
Pre-increment operator. | |
auto | operator++ (int) noexcept -> Iterator |
Post-increment operator. | |
auto | operator* () const noexcept -> reference |
Indirection operator. | |
auto | operator-> () const noexcept -> pointer |
Element access operator. | |
Dummy type for non-existend difference type.
The iterator category, for use in pre-C++20 code.
The iterator concept.
using xentara::utils::json::decoder::String::Iterator::pointer = const char * |
A pointer to a value.
using xentara::utils::json::decoder::String::Iterator::reference = const char & |
A reference to a value.
using xentara::utils::json::decoder::String::Iterator::value_type = const char |
The value type.
|
defaultnoexcept |
Default constructor.
This constructor creates an invalid iterator. It is suitable as a sentinel for algorithms that require the sentinel to be of the same type as the iterator.
|
noexcept |
Conversion constructor for a sentinel.
This constructor creates an invalid iterator suitable for use as a sentinel for algorithms that require the sentinel to be of the same type as the iterator.
|
noexcept |
Indirection operator.
auto xentara::utils::json::decoder::String::Iterator::operator++ | ( | ) | -> Iterator & |
Pre-increment operator.
Moves the iterator forward by one position.
|
noexcept |
Post-increment operator.
Moves the iterator forward by one position.
|
noexcept |
Element access operator.
Returns a pointer to the code unit at the current position.
auto xentara::utils::json::decoder::String::Iterator::operator== | ( | const Iterator & | rhs | ) | const -> bool |
Equality operator.
This operator is intended to be used to check for the end of a string in algorithms that do not support std::default_sentinel_t, but use an invalid iterator as sentinel instead.
This method does not check the position of the iterator within the string. Any valid iterator will compare equal to any other valid iterator for the same array. An iterator that has gone past the end of the string will compare equal to a default constructed iterator, or an iterator that was constructed from std::default_sentinel.