1BSON_ITER_FIND(3) libbson BSON_ITER_FIND(3)
2
3
4
6 bson_iter_find - bson_iter_find()
7
9 bool
10 bson_iter_find (bson_iter_t *iter, const char *key);
11
13 • iter: A bson_iter_t.
14
15 • key: A string containing the requested key.
16
18 The bson_iter_find() function shall advance iter to the element named
19 key or exhaust all elements of iter. If iter is exhausted, false is re‐
20 turned and iter should be considered invalid.
21
22 key is case-sensitive. For a case-folded version, see
23 bson_iter_find_case().
24
26 true is returned if the requested key was found. If not, iter was ex‐
27 hausted and should now be considered invalid.
28
30 MongoDB, Inc
31
33 2017-present, MongoDB, Inc
34
35
36
37
381.20.0 Nov 18, 2021 BSON_ITER_FIND(3)