# 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
