MongoDB C++ Driver 4.2.0
Loading...
Searching...
No Matches
pool.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
17#include <mongocxx/options/pool-fwd.hpp> // IWYU pragma: export
18
19//
20
21#include <mongocxx/v1/pool.hpp> // IWYU pragma: export
22
23#include <utility>
24
26
28
29namespace mongocxx {
30namespace v_noabi {
31namespace options {
32
36class pool {
37 public:
41 pool() = default;
42
51
58 return _client_opts;
59 }
60
61 private:
62 v_noabi::options::client _client_opts;
63};
64
65} // namespace options
66} // namespace v_noabi
67} // namespace mongocxx
68
70
pool()=default
Default initialization.
Used by clients.
Definition client.hpp:42
pool()=default
Default initialization.
pool(v_noabi::options::client client_opts)
Constructs a new pool options object. Note that options::pool is implictly convertible from options::...
Definition pool.hpp:50
v_noabi::options::client const & client_opts() const
The current client options.
Definition pool.hpp:57
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
Declares entities representing options to use with various commands.
Declares entities whose ABI stability is NOT guaranteed.
The top-level namespace within which all mongocxx library entities are declared.
Provides mongocxx::v1::pool.
Provides mongocxx::v_noabi::options::client.
Declares mongocxx::v_noabi::options::pool.