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 first element
19 named key or exhaust all elements of iter. If iter is exhausted, false
20 is returned 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.24.3 Aug 17, 2023 BSON_ITER_FIND(3)