userver: formats::common::ItemsWrapper< Value > Class Template Reference
Loading...
Searching...
No Matches
formats::common::ItemsWrapper< Value > Class Template Referencefinal

#include <userver/formats/common/items.hpp>

Detailed Description

template<typename Value>
class formats::common::ItemsWrapper< Value >

Wrapper for handy python-like iteration over a map.

See formats::common::Items() for usage example

Definition at line 27 of file items.hpp.

Classes

class  Iterator
 

Public Types

using iterator = Iterator<false>
 Satisfies std::forward_iterator, std::common_iterator, with std::iter_reference_t equal to formats::common::ItemsWrapperValue<Value>.
 
using const_iterator = Iterator<true>
 Satisfies std::forward_iterator, std::common_iterator, with std::iter_reference_t equal to formats::common::ItemsWrapperValue<const Value>.
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 

Member Typedef Documentation

◆ const_iterator

template<typename Value >
using formats::common::ItemsWrapper< Value >::const_iterator = Iterator<true>

Satisfies std::forward_iterator, std::common_iterator, with std::iter_reference_t equal to formats::common::ItemsWrapperValue<const Value>.

Definition at line 82 of file items.hpp.

◆ iterator

template<typename Value >
using formats::common::ItemsWrapper< Value >::iterator = Iterator<false>

Satisfies std::forward_iterator, std::common_iterator, with std::iter_reference_t equal to formats::common::ItemsWrapperValue<Value>.

Definition at line 77 of file items.hpp.

Member Function Documentation

◆ begin() [1/2]

template<typename Value >
iterator formats::common::ItemsWrapper< Value >::begin ( )
inline

Definition at line 88 of file items.hpp.

◆ begin() [2/2]

template<typename Value >
const_iterator formats::common::ItemsWrapper< Value >::begin ( ) const
inline

Definition at line 90 of file items.hpp.

◆ end() [1/2]

template<typename Value >
iterator formats::common::ItemsWrapper< Value >::end ( )
inline

Definition at line 89 of file items.hpp.

◆ end() [2/2]

template<typename Value >
const_iterator formats::common::ItemsWrapper< Value >::end ( ) const
inline

Definition at line 91 of file items.hpp.


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