bson_vector_float32_view_from_iter - Man Page

Initialize a bson_vector_float32_view_t <> from a bson_iter_t <> pointing to a valid Vector of float32 element type.

Synopsis

bool
bson_vector_float32_view_from_iter (bson_vector_float32_view_t *view_out,
                                    bson_iter_t *iter);

Parameters

Description

The provided iterator, which must point to some kind of BSON item, will be checked for a valid Vector of float32 element type. On success, a bson_vector_float32_view_t <> is set to point to the same underlying bson_t <> buffer as the provided bson_iter_t <>. The view will only be valid until the containing document is destroyed or otherwise modified.

Returns

Returns true if the view was successfully initialized.

See also:

bson_vector_float32_const_view_from_iter() <>

Author

MongoDB, Inc

Info

Mar 04, 2026 2.2.3 libbson