20#ifndef RIPPLE_PROTOCOL_STARRAY_H_INCLUDED
21#define RIPPLE_PROTOCOL_STARRAY_H_INCLUDED
23#include <xrpl/basics/CountedObject.h>
24#include <xrpl/protocol/STObject.h>
49 explicit STArray(Iter first, Iter last);
81 template <
class... Args>
169template <
class Iter,
class>
174template <
class Iter,
class>
176 :
STBase(f), v_(first, last)
204template <
class... Args>
Tracks the number of instances of an object.
bool operator!=(STArray const &s) const
void sort(bool(*compare)(STObject const &o1, STObject const &o2))
void emplace_back(Args &&... args)
std::string getFullText() const override
iterator erase(iterator pos)
STBase * move(std::size_t n, void *buf) override
STBase * copy(std::size_t n, void *buf) const override
void add(Serializer &s) const override
bool isEquivalent(STBase const &t) const override
list_type::iterator iterator
list_type::const_iterator const_iterator
STObject & operator[](std::size_t j)
SerializedTypeID getSType() const override
bool operator==(STArray const &s) const
void reserve(std::size_t n)
Json::Value getJson(JsonOptions index) const override
bool isDefault() const override
list_type::size_type size_type
STArray(STArray const &)=default
STArray & operator=(STArray const &)=default
std::string getText() const override
void push_back(STObject const &object)
void swap(STArray &a) noexcept
A type which can be exported to a well known binary format.
T emplace_back(T... args)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Note, should be treated as flags that can be | and &.