SYNOPSIS

#include <bson.h>

#define BSON_ITER_HOLDS_DOUBLE(iter) \
   (bson_iter_type ((iter)) == BSON_TYPE_DOUBLE)

double
bson_iter_double (const bson_iter_t *iter);

DESCRIPTION

The bson_iter_double() function shall return the contents of a BSON_TYPE_DOUBLE element currently observed by iter.

It is invalid to call this function while observing an element other than BSON_TYPE_DOUBLE. You can verify this with BSON_ITER_HOLDS_DOUBLE().

RETURN VALUE

A double.

SEE ALSO

AUTHORS

This page was written by MongoDB, Inc.