Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1019 Bytes

bson_iter_visit_all.rst

File metadata and controls

38 lines (25 loc) · 1019 Bytes
man_page:bson_iter_visit_all

bson_iter_visit_all()

Synopsis

bool
bson_iter_visit_all (bson_iter_t *iter,
                     const bson_visitor_t *visitor,
                     void *data);

Parameters

Description

A convenience function to iterate all remaining fields of iter using the callback vtable provided by visitor.

This function is equivalent to :symbol:`bson_iter_visit_all_v2` with BSON_ITER_VISIT_DEFAULT given for its flags argument.

Returns

Returns true if visitation was prematurely stopped by a callback function. Returns false either because all elements were visited or due to corrupt BSON.

See :symbol:`bson_visitor_t` for examples of how to set your own callbacks to provide information about the location of corrupt or unsupported BSON document entries.