LLVM
8.0.1
|
An Array is a JSON array, which contains heterogeneous JSON values. More...
#include "llvm/Support/JSON.h"
Public Types | |
using | value_type = Value |
using | iterator = std::vector< Value >::iterator |
using | const_iterator = std::vector< Value >::const_iterator |
Public Member Functions | |
Array ()=default | |
Array (std::initializer_list< Value > Elements) | |
template<typename Collection > | |
Array (const Collection &C) | |
Value & | operator[] (size_t I) |
const Value & | operator[] (size_t I) const |
Value & | front () |
const Value & | front () const |
Value & | back () |
const Value & | back () const |
Value * | data () |
const Value * | data () const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
bool | empty () const |
size_t | size () const |
void | clear () |
void | push_back (const Value &E) |
void | push_back (Value &&E) |
template<typename... Args> | |
void | emplace_back (Args &&... A) |
void | pop_back () |
iterator | insert (iterator P, const Value &E) |
iterator | insert (iterator P, Value &&E) |
template<typename It > | |
iterator | insert (iterator P, It A, It Z) |
template<typename... Args> | |
iterator | emplace (const_iterator P, Args &&... A) |
Friends | |
bool | operator== (const Array &L, const Array &R) |
An Array is a JSON array, which contains heterogeneous JSON values.
It simulates std::vector<Value>.
using llvm::json::Array::const_iterator = std::vector<Value>::const_iterator |
using llvm::json::Array::iterator = std::vector<Value>::iterator |
using llvm::json::Array::value_type = Value |
|
explicitdefault |
|
explicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |