JSON Voorhees
Killer JSON for C++
jsonv::detail::basic_view< TIterator, TConstIterator > Class Template Reference

A view template used for array and object views of a value. More...

#include <jsonv/detail/basic_view.hpp>

+ Inheritance diagram for jsonv::detail::basic_view< TIterator, TConstIterator >:

Public Types

typedef TIterator iterator
 
typedef TConstIterator const_iterator
 
typedef std::reverse_iterator< iterator > reverse_iterator
 
typedef std::reverse_iterator< const_iterator > const_reverse_iterator
 
typedef std::iterator_traits< iterator >::value_type value_type
 
typedef std::iterator_traits< iterator >::reference reference
 
typedef std::iterator_traits< iterator >::pointer pointer
 

Public Member Functions

 basic_view (iterator begin_, iterator end_)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator crend () const
 

Detailed Description

template<typename TIterator, typename TConstIterator = TIterator>
class jsonv::detail::basic_view< TIterator, TConstIterator >

A view template used for array and object views of a value.

This class allows traversing a value with a range based for loop.

Note
A view does nothing to preserve the lifetime of the underlying container, nor does it remain valid if the container is modified.

Definition at line 34 of file basic_view.hpp.


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