#include <bsoncxx/v_noabi/bsoncxx/builder/stream/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.
◆ single_context()
bsoncxx::v_noabi::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<<() [1/3]
<< operator for opening a new subarray in the core builder.
The argument must be an open_array_type token (it is otherwise ignored).
◆ operator<<() [2/3]
<< operator for opening a new subdocument in the core builder.
The argument must be an open_document_type token (it is otherwise ignored).
◆ operator<<() [3/3]
template<class T >
void bsoncxx::v_noabi::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: