File: values.md

package info (click to toggle)
mongo-cxx-driver 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 13,832 kB
  • sloc: cpp: 61,365; python: 1,436; sh: 356; xml: 253; perl: 215; makefile: 21
file content (39 lines) | stat: -rw-r--r-- 844 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Obtain a BSON Value

## From a BSON Type

### As a View

@snippet api/bsoncxx/examples/bson_documents/values/bson_type_view.cpp Example

### As a Value
 
@snippet api/bsoncxx/examples/bson_documents/values/bson_type_value.cpp Example

## From a Document Element

### As a View

@snippet api/bsoncxx/examples/bson_documents/values/doc_view.cpp Example

### As a Value

@snippet api/bsoncxx/examples/bson_documents/values/doc_value.cpp Example

## From an Array Element

### As a View

@snippet api/bsoncxx/examples/bson_documents/values/arr_view.cpp Example

### As a Value

@snippet api/bsoncxx/examples/bson_documents/values/arr_value.cpp Example

## From a Value Type

@snippet api/bsoncxx/examples/bson_documents/values/value_type.cpp Example

## With make_value

@snippet api/bsoncxx/examples/bson_documents/values/make_value.cpp Example