DOKK / manpages / debian 10 / libbson-doc / bson_iter_next.3.en
BSON_ITER_NEXT(3) Libbson BSON_ITER_NEXT(3)

bson_iter_next - bson_iter_next()

bool
bson_iter_next (bson_iter_t *iter);


iter: A bson_iter_t.

Advances iter to the next element in the document.

true if iter was advanced. Returns false if iter has passed the last element in the document or encountered invalid BSON.

It is a programming error to use iter after this function has returned false.

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0