MongoDB C++ Driver mongocxx-4.0.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
18
20
21namespace bsoncxx {
22namespace v_noabi {
23namespace builder {
24namespace stream {
25
30 constexpr open_document_type() {}
31};
32
37
42 constexpr close_document_type() {}
43};
44
49
54 constexpr open_array_type() {}
55};
56
64
69 constexpr close_array_type() {}
70};
71
76
81 constexpr finalize_type() {}
82};
83
89
90} // namespace stream
91} // namespace builder
92} // namespace v_noabi
93} // namespace bsoncxx
94
95namespace bsoncxx {
96namespace builder {
97namespace stream {
98
99using ::bsoncxx::v_noabi::builder::stream::close_array;
100using ::bsoncxx::v_noabi::builder::stream::close_document;
101using ::bsoncxx::v_noabi::builder::stream::finalize;
102using ::bsoncxx::v_noabi::builder::stream::open_array;
103using ::bsoncxx::v_noabi::builder::stream::open_document;
104
105} // namespace stream
106} // namespace builder
107} // namespace bsoncxx
108
110
115
116#if defined(BSONCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
117
118namespace bsoncxx {
119namespace builder {
120namespace stream {
121
123constexpr close_array_type close_array;
124
126constexpr close_document_type close_document;
127
129constexpr finalize_type finalize;
130
132constexpr open_array_type open_array;
133
135constexpr open_document_type open_document;
136
137} // namespace stream
138} // namespace builder
139} // namespace bsoncxx
140
141#endif // defined(BSONCXX_PRIVATE_DOXYGEN_PREPROCESSOR)
The bsoncxx macro guard postlude header.
The bsoncxx macro guard prelude header.
Provides bsoncxx::v_noabi::document::view_or_value.
constexpr open_array_type open_array
bsoncxx::v_noabi::builder::stream::open_array
Definition helpers.hpp:132
constexpr open_document_type open_document
bsoncxx::v_noabi::builder::stream::open_document
Definition helpers.hpp:135
constexpr close_array_type close_array
bsoncxx::v_noabi::builder::stream::close_array
Definition helpers.hpp:123
constexpr finalize_type finalize
bsoncxx::v_noabi::builder::stream::finalize
Definition helpers.hpp:129
constexpr close_document_type close_document
bsoncxx::v_noabi::builder::stream::close_document
Definition helpers.hpp:126
constexpr finalize_type finalize
A stream manipulator to finalize a document. When finalize is passed, the expression will evaluate to...
Definition helpers.hpp:88
constexpr open_document_type open_document
A stream manipulator to open a subdocument.
Definition helpers.hpp:36
constexpr close_document_type close_document
A stream manipulator to close a subdocument.
Definition helpers.hpp:48
constexpr open_array_type open_array
A stream manipulator to open a subarray.
Definition helpers.hpp:63
constexpr close_array_type close_array
A stream manipulator to close a subarray.
Definition helpers.hpp:75
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:68
The type of a stream manipulator to close a subdocument.
Definition helpers.hpp:41
The type of a stream manipulator to finalize a document.
Definition helpers.hpp:80
The type of a stream manipulator to open a subarray.
Definition helpers.hpp:53
The type of a stream manipulator to open a subdocument.
Definition helpers.hpp:29