MongoDB C++ Driver 4.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
string_view.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::basic_string_view;
24using v1::stdx::string_view;
25
26} // namespace stdx
27} // namespace v_noabi
28} // namespace bsoncxx
29
30namespace bsoncxx {
31namespace stdx {
32
33#if defined(BSONCXX_API_OVERRIDE_DEFAULT_ABI)
34
35using v1::stdx::basic_string_view;
36using v1::stdx::string_view;
37
38#else
39
40using v_noabi::stdx::basic_string_view;
41using v_noabi::stdx::string_view;
42
43#endif // defined(BSONCXX_API_OVERRIDE_DEFAULT_ABI)
44
45} // namespace stdx
46} // namespace bsoncxx
47
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::string_view-related polyfills for library API usage.