|
| 1 | +# Create an Array |
| 2 | + |
| 3 | +## From a JSON String |
| 4 | + |
| 5 | +### Basic Example |
| 6 | + |
| 7 | +@snippet api/bsoncxx/examples/bson_documents/create_array/json_basic.cpp Example |
| 8 | + |
| 9 | +### With Extended JSON |
| 10 | + |
| 11 | +@snippet api/bsoncxx/examples/bson_documents/create_array/json_extended.cpp Example |
| 12 | + |
| 13 | +### With a Sub-Document |
| 14 | + |
| 15 | +@snippet api/bsoncxx/examples/bson_documents/create_array/json_sub_document.cpp Example |
| 16 | + |
| 17 | +### With a Sub-Array |
| 18 | + |
| 19 | +@snippet api/bsoncxx/examples/bson_documents/create_array/json_sub_array.cpp Example |
| 20 | + |
| 21 | +### With a User-Defined Literal |
| 22 | + |
| 23 | +@snippet api/bsoncxx/examples/bson_documents/create_array/json_udl.cpp Example |
| 24 | + |
| 25 | +## Using the Basic Builder |
| 26 | + |
| 27 | +### Basic Example |
| 28 | + |
| 29 | +@snippet api/bsoncxx/examples/bson_documents/create_array/builder_basic.cpp Example |
| 30 | + |
| 31 | +### With make_document |
| 32 | + |
| 33 | +@snippet api/bsoncxx/examples/bson_documents/create_array/builder_make_document.cpp Example |
| 34 | + |
| 35 | +### With Multiple Appends |
| 36 | + |
| 37 | +@snippet api/bsoncxx/examples/bson_documents/create_array/builder_append.cpp Example |
| 38 | + |
| 39 | +### To Create Multiple Documents |
| 40 | + |
| 41 | +@snippet api/bsoncxx/examples/bson_documents/create_array/builder_reset.cpp Example |
| 42 | + |
| 43 | +### With a Value Type |
| 44 | + |
| 45 | +@snippet api/bsoncxx/examples/bson_documents/create_array/builder_value_type.cpp Example |
| 46 | + |
| 47 | +### With a BSON Type |
| 48 | + |
| 49 | +@snippet api/bsoncxx/examples/bson_documents/create_array/builder_bson_type.cpp Example |
| 50 | + |
| 51 | +### With a BSON Value |
| 52 | + |
| 53 | +@snippet api/bsoncxx/examples/bson_documents/create_array/builder_bson_value.cpp Example |
| 54 | + |
| 55 | +### With a Sub-Document |
| 56 | + |
| 57 | +@snippet api/bsoncxx/examples/bson_documents/create_array/builder_sub_document.cpp Example |
| 58 | + |
| 59 | +### With Multiple Sub-Document Appends |
| 60 | + |
| 61 | +@snippet api/bsoncxx/examples/bson_documents/create_array/builder_sub_document_append.cpp Example |
| 62 | + |
| 63 | +### With a Sub-Array |
| 64 | + |
| 65 | +@snippet api/bsoncxx/examples/bson_documents/create_array/builder_sub_array.cpp Example |
| 66 | + |
| 67 | +### With Multiple Sub-Array Appends |
| 68 | + |
| 69 | +@snippet api/bsoncxx/examples/bson_documents/create_array/builder_sub_array_append.cpp Example |
| 70 | + |
| 71 | +## From Raw Bytes |
| 72 | + |
| 73 | +### As a View |
| 74 | + |
| 75 | +@snippet api/bsoncxx/examples/bson_documents/create_array/builder_raw_view.cpp Example |
| 76 | + |
| 77 | +### As a Value |
| 78 | + |
| 79 | +@snippet api/bsoncxx/examples/bson_documents/create_array/builder_raw_value.cpp Example |
0 commit comments