BSON_ITER_OVERWRITE_BOOL(3)
π BSON_ITER_OVERWRITE_BOOL(3) π
okay so bestie, welcome to libbson β this is the BSON_ITER_OVERWRITE_BOOL(3) page and it's literally about swapping out a boolean without breaking a sweat. no cap. β¨
β¨ SYNOPSIS β¨
void
bson_iter_overwrite_bool (bson_iter_t *iter, bool value);
that's it. that's the whole vibe. two arguments, no return value, absolutely zero drama. π
πΈ PARAMETERS πΈ
iterβ abson_iter_t. your iterator girlie, the one pointing at the thing you wanna change. πvalueβ aboolholding the new value. the glow-up you're giving it, fr fr.
π¦ DESCRIPTION π¦
the bson_iter_overwrite_bool() function shall overwrite the contents of a BSON_TYPE_BOOL element in place. like, no copying, no new document, just a little surgical slay right where it sits. π₯
β οΈ but listen β this may only be done when the underlying bson document allows mutation. if it doesn't, that's a whole situation, so check first bestie. π
and it is a programming error to call this function when iter is not observing an element of type BSON_TYPE_BOOL. not a warning, not a suggestion β a programming error. the iterator has to actually be looking at a bool. anything else and you're cooked. π
π AUTHOR π
MongoDB, Inc β iconic behavior honestly π
π COPYRIGHT π
2009-present, MongoDB, Inc.
and that's the whole page babes π version 2.5.6, dated Oct 09, 2026, brought to you by the fine folks at MongoDB, Inc. go forth and overwrite responsibly β and remember: bool only, mutation allowed, no exceptions π«Άβ¨
π¦ 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