mrdocs::dom::DefaultObjectImpl::visit

visit overloads

Synopses

Declared in <mrdocs/Dom/Object.hpp>

Invoke the visitor for each key/value pair.

virtual
bool
visit(std::function<bool(String, Value)> fn) const = 0;

Visit each key/value pair until the visitor returns false.

virtual
bool
visit(std::function<bool(String, Value)> visitor) const override;

Return Value

  • true if the visitor returned true for all elements, otherwise false.

  • False if visitor requested stop, otherwise true.

Parameters

Name

Description

fn

The visitor function.

visitor

Callback receiving key and value.

Created with MrDocs