1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-28 12:02:00 +03:00

Make iterator_proxy_value a forward_iterator (#4371) (#4372)

* Make iteration_proxy_value model forward_iterator

* Amalgamate

* Suppress tidy warning
This commit is contained in:
Captain Crutches
2024-11-15 00:28:40 -08:00
committed by GitHub
parent 1825117e63
commit fde9a86c5a
3 changed files with 5 additions and 5 deletions

View File

@ -5181,7 +5181,7 @@ NLOHMANN_JSON_NAMESPACE_END
#include <cstddef> // size_t
#include <iterator> // input_iterator_tag
#include <iterator> // forward_iterator_tag
#include <string> // string, to_string
#include <tuple> // tuple_size, get, tuple_element
#include <utility> // move
@ -5215,7 +5215,7 @@ template<typename IteratorType> class iteration_proxy_value
using value_type = iteration_proxy_value;
using pointer = value_type *;
using reference = value_type &;
using iterator_category = std::input_iterator_tag;
using iterator_category = std::forward_iterator_tag;
using string_type = typename std::remove_cv< typename std::remove_reference<decltype( std::declval<IteratorType>().key() ) >::type >::type;
private: