A streaming interface for constructing a BSON document.
More...
#include <document.hpp>
A streaming interface for constructing a BSON document.
- Note
- Use of the stream builder is discouraged. See https://mongodb.github.io/mongo-cxx-driver/mongocxx-v3/working-with-bson/#stream-builder for more details.
◆ extract()
bsoncxx::document::value bsoncxx::v_noabi::builder::stream::document::extract |
( |
| ) |
|
|
inline |
Transfer ownership of the underlying document to the caller.
- Returns
- A document::value with ownership of the document.
- Warning
- After calling extract() it is illegal to call any methods on this class, unless it is subsequenly moved into.
◆ operator bsoncxx::document::view()
bsoncxx::v_noabi::builder::stream::document::operator bsoncxx::document::view |
( |
| ) |
const |
|
inline |
- Returns
- A view of the BSON document.
◆ view()
bsoncxx::document::view bsoncxx::v_noabi::builder::stream::document::view |
( |
| ) |
const |
|
inline |
- Returns
- A view of the BSON document.
The documentation for this class was generated from the following file:
- src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/builder/stream/document.hpp