mrdocs::dom::Object::visit
Invoke the visitor for each key/value pair
Synopses
Declared in <mrdocs/Dom/Object.hpp>
Invoke the visitor for each key/value pair
template<class F>
requires std::invocable<F, String, Value> &&
std::same_as<std::invoke_result_t<F, String, Value>, bool>
bool
visit(F&& fn) const;
Invoke the visitor for each key/value pair
template<class F>
requires std::invocable<F, String, Value> &&
mrdocs::detail::isExpected<std::invoke_result_t<F, String, Value>>
Expected<void, std::invoke_result_t<F, String, Value>::error_type>
visit(F&& fn) const;
Invoke the visitor for each key/value pair
template<class F>
requires std::invocable<F, String, Value> &&
std::same_as<std::invoke_result_t<F, String, Value>, void>
void
visit(F&& fn) const;
Return Value
-
trueif the visitor returnedtruefor all elements, otherwisefalse. -
voidif the visitor returned did not return an error for any element, otherwiseE.
Parameters
| Name | Description |
|---|---|
fn |
The visitor function. |
Created with MrDocs