MongoDB C++ Driver mongocxx-3.11.0
Loading...
Searching...
No Matches
helpers.hpp
Go to the documentation of this file.
1// Copyright 2009-present MongoDB, Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
19
21
22namespace bsoncxx {
23namespace v_noabi {
24namespace builder {
25namespace stream {
26
27using ::bsoncxx::v_noabi::builder::concatenate; // Deprecated. Deliberately undocumented.
28
33 constexpr open_document_type() {}
34};
35
40
45 constexpr close_document_type() {}
46};
47
52
57 constexpr open_array_type() {}
58};
59
67
72 constexpr close_array_type() {}
73};
74
79
84 constexpr finalize_type() {}
85};
86
92
93} // namespace stream
94} // namespace builder
95} // namespace v_noabi
96} // namespace bsoncxx
97
98namespace bsoncxx {
99namespace builder {
100namespace stream {
101
102using ::bsoncxx::v_noabi::builder::stream::concatenate; // Deprecated. Deliberately undocumented.
103
104using ::bsoncxx::v_noabi::builder::stream::close_array;
105using ::bsoncxx::v_noabi::builder::stream::close_document;
106using ::bsoncxx::v_noabi::builder::stream::finalize;
107using ::bsoncxx::v_noabi::builder::stream::open_array;
108using ::bsoncxx::v_noabi::builder::stream::open_document;
109
110} // namespace stream
111} // namespace builder
112} // namespace bsoncxx
113
115
120
121#if defined(BSONCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
122
123namespace bsoncxx {
124namespace builder {
125namespace stream {
126
128constexpr close_array_type close_array;
129
131constexpr close_document_type close_document;
132
134constexpr finalize_type finalize;
135
137constexpr open_array_type open_array;
138
140constexpr open_document_type open_document;
141
142} // namespace stream
143} // namespace builder
144} // namespace bsoncxx
145
146#endif // defined(BSONCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
The bsoncxx macro guard postlude header.
The bsoncxx macro guard prelude header.
Provides concatenators for use with "streaming" BSON builder syntax.
Provides bsoncxx::v_noabi::document::view_or_value.
constexpr open_array_type open_array
bsoncxx::v_noabi::builder::stream::open_array
Definition helpers.hpp:137
constexpr open_document_type open_document
bsoncxx::v_noabi::builder::stream::open_document
Definition helpers.hpp:140
constexpr close_array_type close_array
bsoncxx::v_noabi::builder::stream::close_array
Definition helpers.hpp:128
constexpr finalize_type finalize
bsoncxx::v_noabi::builder::stream::finalize
Definition helpers.hpp:134
constexpr close_document_type close_document
bsoncxx::v_noabi::builder::stream::close_document
Definition helpers.hpp:131
constexpr finalize_type finalize
A stream manipulator to finalize a document. When finalize is passed, the expression will evaluate to...
Definition helpers.hpp:91
constexpr open_document_type open_document
A stream manipulator to open a subdocument.
Definition helpers.hpp:39
constexpr close_document_type close_document
A stream manipulator to close a subdocument.
Definition helpers.hpp:51
constexpr open_array_type open_array
A stream manipulator to open a subarray.
Definition helpers.hpp:66
constexpr close_array_type close_array
A stream manipulator to close a subarray.
Definition helpers.hpp:78
The top-level namespace within which all bsoncxx library entities are declared.
The type of a stream manipulator to close a subarray.
Definition helpers.hpp:71
The type of a stream manipulator to close a subdocument.
Definition helpers.hpp:44
The type of a stream manipulator to finalize a document.
Definition helpers.hpp:83
The type of a stream manipulator to open a subarray.
Definition helpers.hpp:56
The type of a stream manipulator to open a subdocument.
Definition helpers.hpp:32