MongoDB C++ Driver 4.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
optional.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
19namespace bsoncxx {
20namespace v_noabi {
21namespace stdx {
22
23using v1::stdx::in_place;
24using v1::stdx::in_place_t;
25using v1::stdx::make_optional;
26using v1::stdx::nullopt;
27using v1::stdx::nullopt_t;
28using v1::stdx::optional;
29
30} // namespace stdx
31} // namespace v_noabi
32} // namespace bsoncxx
33
34namespace bsoncxx {
35namespace stdx {
36
37#if defined(BSONCXX_API_OVERRIDE_DEFAULT_ABI)
38
39using v1::stdx::in_place;
40using v1::stdx::in_place_t;
41using v1::stdx::make_optional;
42using v1::stdx::nullopt;
43using v1::stdx::nullopt_t;
44using v1::stdx::optional;
45
46#else
47
48using v_noabi::stdx::in_place;
49using v_noabi::stdx::in_place_t;
50using v_noabi::stdx::make_optional;
51using v_noabi::stdx::nullopt;
52using v_noabi::stdx::nullopt_t;
53using v_noabi::stdx::optional;
54
55#endif // defined(BSONCXX_API_OVERRIDE_DEFAULT_ABI)
56
57} // namespace stdx
58} // namespace bsoncxx
59
Declares C++17 standard library polyfills.
Declares C++17 standard library polyfills.
Declares entities whose ABI stability is NOT guaranteed.
The top-level namespace within which all bsoncxx library entities are declared.
Provides std::optional-related polyfills for library API usage.