SYNOPSIS
#include <bson.h> #define BSON_ITER_HOLDS_INT64(iter) \ (bson_iter_type ((iter)) == BSON_TYPE_INT64) int64_t bson_iter_int64 (const bson_iter_t *iter);
DESCRIPTION
The bson_iter_int64() function shall retrieve the 64-bit signed integer from a BSON_TYPE_INT64 element.
It is invalid to call this function while observing a field that is not of type BSON_TYPE_INT64. You can verify this with BSON_ITER_HOLDS_INT64().
RETURN VALUE
A 64-bit signed integer.
AUTHORS
This page was written by MongoDB, Inc.