logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

#define BSON_ITER_HOLDS_BOOL(iter) (bson_iter_type ((iter)) == BSON_TYPE_BOOL)

Author

       MongoDB, Inc

Description

       The  bson_iter_bool()  function  shall  return  the  boolean  value  of a BSON_TYPE_BOOL element. It is a
       programming error to call this function on an element other than BSON_TYPE_BOOL. You can check this  with
       bson_iter_type() or BSON_ITER_HOLDS_BOOL().

Parameters

iter: A bson_iter_t.

Returns

       Either true or false.

Synopsis

          #define BSON_ITER_HOLDS_BOOL(iter) (bson_iter_type ((iter)) == BSON_TYPE_BOOL)

          bool
          bson_iter_bool (const bson_iter_t *iter);

See Also