DOKK / manpages / debian 10 / libbson-doc / bson_iter_visit_all.3.en
BSON_ITER_VISIT_ALL(3) Libbson BSON_ITER_VISIT_ALL(3)

bson_iter_visit_all - bson_iter_visit_all()

bool
bson_iter_visit_all (bson_iter_t *iter,

const bson_visitor_t *visitor,
void *data);


  • iter: A bson_iter_t.
  • visitor: A bson_visitor_t.
  • data: Optional data for visitor.

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

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

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0