MongoDB C++ Driver 4.2.0
Loading...
Searching...
No Matches
delete_one_result.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/v1/delete_one_result-fwd.hpp> // IWYU pragma: export
18
19//
20
22
25
26#include <cstdint>
27
28namespace mongocxx {
29namespace v1 {
30
43 private:
44 class impl;
45 void* _impl;
46
47 public:
54
62
70
75
80
85
90
95 friend MONGOCXX_ABI_EXPORT_CDECL(bool) operator==(delete_one_result const& lhs, delete_one_result const& rhs);
96
97 friend bool operator!=(delete_one_result const& lhs, delete_one_result const& rhs) {
98 return !(lhs == rhs);
99 }
100
102
103 class internal;
104
105 private:
106 /* explicit(false) */ delete_one_result(void* impl);
107};
108
109} // namespace v1
110} // namespace mongocxx
111
113
A list of bulk write operations.
Definition bulk_write.hpp:55
v1::bulk_write::result result() const
Return the raw bulk write result.
std::int64_t deleted_count() const
Return the number of documents that were deleted.
~delete_one_result()
Destroy this object.
delete_one_result(delete_one_result &&other) noexcept
Move constructor.
Declares mongocxx::v1::delete_one_result.
Provides macros to control the set of symbols exported in the ABI.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v1 macro guard postlude header.
The mongocxx v1 macro guard prelude header.
Declares entities whose ABI stability is guaranteed for documented symbols.
The top-level namespace within which all mongocxx library entities are declared.
Provides entities related to write operations.