mrdocs::dom::Value::get

get overloads

Synopses

Declared in <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...

Return the element for a given key.

template<std::convertible_to<std::string_view> S>
dom::Value
get(S const& key) const;
» more...

Return Value

  • The value at the specified index, or a Value of type
  • The value for the specified key, or a Value of type Kind::Undefined if the key does not exist.
  • The value for the specified key, or a Value of type Kind::Undefined if the key does not exist.

Parameters

NameDescription
iThe index.
keyThe key.