How to make a document that include a large array

i know it can use “open_array” and “close_array” to make a short array in a document, but if my array is a “double arr[10000}” so that i can not write everyone of them after “<<” , as well as the “kvp()” can not recieve a non-char pointer. so what can i do? any help, please!

You can use append with basic builder. See examples here :
https://mongocxx.org/api/mongocxx-4.0.0/topic-bsoncxx-examples-bson-documents.html#create-an-array

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.