view::const_iterator view::cbegin() const { bson_iter_t iter; if (!bson_iter_init_from_data(&iter, data(), length())) { return cend(); } if (!bson_iter_next(&iter)) { return cend(); } return const_iterator{element{iter.raw, iter.len, iter.off}}; }
view::const_iterator view::cbegin() const { bson_iter_t iter; if (!bson_iter_init_from_data(&iter, data(), length())) { return cend(); } if (!bson_iter_next(&iter)) { return cend(); } return const_iterator{element{data(), static_cast<uint32_t>(length()), bson_iter_offset(&iter), bson_iter_key_len(&iter)}}; }