BSON_ITER_OVERWRITE_DOUBLE(3)
okay so this is BSON_ITER_OVERWRITE_DOUBLE(3), a libbson manual page, and honestly it's giving βsmall function, very specific jobβ energy π
Let's get into it.
β¨ SYNOPSIS β¨
void
bson_iter_overwrite_double (bson_iter_t *iter, double value);
π PARAMETERS π
iterβ Abson_iter_t. Your iterator bestie π«Άvalueβ The newdoublevalue. The fresh number you're swapping in β¨
π DESCRIPTION π
The bson_iter_overwrite_double() function shall overwrite the contents of a BSON_TYPE_DOUBLE element in place. Like, in place in place β no copy, no clone, no little duplicate running around πΈ
This may only be done when the underlying bson document allows mutation. So before you go full main-character on it, make sure mutation is actually allowed, bestie π
It is a programming error to call this function when iter is not observing an element of type BSON_TYPE_DOUBLE. That's not a cute little vibe-check fail β it's a programming error, so don't call it unless the iterator is literally observing a BSON_TYPE_DOUBLE element. Periodt π
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
signed off from the libbson 2.5.6 era, dated Oct 09, 2026 β slay and goodbye, bestie π«Άπ
π¦ where this page comes from
- epel 10: libbson-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms