Back to Site
Loading...
Searching...
No Matches
librats::Json::ItemsProxy< Const > Class Template Reference

A key/value view supporting structured bindings: for (auto&& [key, val] : obj.items()) { ... } For arrays, key() is the decimal index. More...

#include <json.h>

Public Types

using JsonPtr = typename std::conditional< Const, const Json *, Json * >::type
 

Public Member Functions

 ItemsProxy (JsonPtr owner)
 
Iterator< Const > begin () const
 
Iterator< Const > end () const
 

Detailed Description

template<bool Const>
class librats::Json::ItemsProxy< Const >

A key/value view supporting structured bindings: for (auto&& [key, val] : obj.items()) { ... } For arrays, key() is the decimal index.

Definition at line 356 of file json.h.

Member Typedef Documentation

◆ JsonPtr

template<bool Const>
using librats::Json::ItemsProxy< Const >::JsonPtr = typename std::conditional<Const, const Json*, Json*>::type

Definition at line 358 of file json.h.

Constructor & Destructor Documentation

◆ ItemsProxy()

template<bool Const>
librats::Json::ItemsProxy< Const >::ItemsProxy ( JsonPtr  owner)
inlineexplicit

Definition at line 359 of file json.h.

Member Function Documentation

◆ begin()

template<bool Const>
Iterator< Const > librats::Json::ItemsProxy< Const >::begin ( ) const
inline

Definition at line 360 of file json.h.

◆ end()

template<bool Const>
Iterator< Const > librats::Json::ItemsProxy< Const >::end ( ) const
inline

Definition at line 361 of file json.h.


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