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;

Return the element for a given key.

dom::Value
get(std::string_view key) const;

Return the element at a given index or key.

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

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.

Parameters

Name

Description

i

The index.

key

The key.

Created with MrDocs