1BSON_ITER_AS_BOOL(3)                libbson               BSON_ITER_AS_BOOL(3)
2
3
4

SYNOPSIS

6          bool
7          bson_iter_as_bool (const bson_iter_t *iter);
8

PARAMETERS

10iter: A bson_iter_t.
11

DESCRIPTION

13       Fetches the current field as if it were a boolean.
14
15       bson_iter_as_bool()  currently  knows  how to determine a boolean value
16       from the following types:
17
18       • BSON_TYPE_BOOL
19
20       • BSON_TYPE_DOUBLE
21
22       • BSON_TYPE_INT32
23
24       • BSON_TYPE_INT64
25
26       • BSON_TYPE_NULL
27
28       • BSON_TYPE_UNDEFINED
29
30       • BSON_TYPE_UTF8
31
32       BSON_TYPE_UTF8 will always equate to true.
33

RETURNS

35       true if the field equates to non-zero.
36

AUTHOR

38       MongoDB, Inc
39
41       2017-present, MongoDB, Inc
42
43
44
45
461.25.1                           Nov 08, 2023             BSON_ITER_AS_BOOL(3)
Impressum