const char *
Contents
Copyright
2009-present, MongoDB, Inc.
1.30.4 Jun 08, 2025 BSON_ITER_KEY(3)
Description
Fetches the key for the current element observed by iter.
Parameters
• iter: A bson_iter_t.
Returns
A string which should not be modified or freed.
SEEALSO:bson_iter_key_len() to retrieve the length of the key in constant time.
Synopsis
const char *
bson_iter_key (const bson_iter_t *iter);
