A stream context which appends a single value.
More...
#include <single_context.hpp>
A stream context which appends a single value.
This type is useful as the argument to a callable passed to other stream modes. Specifically, any callback that takes a single_context can be used to write a value in value_context or array_context.
bsoncxx::builder::stream::single_context::single_context |
( |
core * |
core | ) |
|
|
inline |
Create a single_context given a core builder.
- Parameters
-
core | The core builder to orchestrate |
<< operator for opening a new subdocument in the core builder.
- Parameters
-
<< operator for opening a new subarray in the core builder.
- Parameters
-
template<class T >
void bsoncxx::builder::stream::single_context::operator<< |
( |
T && |
t | ) |
|
|
inline |
<< operator for accepting a real value and appending it to the core builder.
- Parameters
-
The documentation for this class was generated from the following file: