get
overloads
<mrdocs/Dom/Value.hpp>
Return the element at a given index.
dom::Value
get(std::size_t i) const;
» more...
Return the element for a given key.
dom::Value
get(std::string_view key) const;
» more...
Return the element at a given index or key.
dom::Value
get(dom::Value const& i) const;
» more...
template<std::convertible_to<std::string_view> S>
dom::Value
get(S const& key) const;
» more...
Kind::Undefined
if the key does not exist.Name | Description |
---|---|
i | The index. |
key | The key. |