73 return _result.matched_count();
82 return _result.modified_count();
91 auto const ids = _result.upserted_ids();
92 auto const iter = ids.find(0);
94 if (iter != ids.end()) {
102 return lhs._result == rhs._result;
106 return !(lhs == rhs);
124 return {std::move(v)};
A polyfill for std::optional<T>.
Definition optional.hpp:799
replace_one(v_noabi::result::bulk_write result)
Definition replace_one.hpp:46
The result of a "replaceOne" operation.
Definition replace_one_result.hpp:46
The result of a MongoDB bulk write operation.
Definition bulk_write.hpp:43
The result of a MongoDB replaceOne operation.
Definition replace_one.hpp:41
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::element > upserted_id() const
Gets the id of the upserted document.
Definition replace_one.hpp:90
std::int32_t modified_count() const
Gets the number of documents that were modified during this operation.
Definition replace_one.hpp:81
operator v1::replace_one_result() const
Convert to the mongocxx::v1 equivalent.
v_noabi::result::bulk_write const & result() const
Returns the bulk write result for this replace_one operation.
Definition replace_one.hpp:63
std::int32_t matched_count() const
Gets the number of documents that were matched during this operation.
Definition replace_one.hpp:72
replace_one(v_noabi::result::bulk_write result)
Definition replace_one.hpp:46
Provides bsoncxx::v_noabi::document::element.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
Declares entities whose ABI stability is guaranteed for documented symbols.
Declares entities representing the result of various commands.
Declares entities whose ABI stability is NOT guaranteed.
bool operator==(std::string str, hint const &hint)
Convenience methods to compare against an index name.
Definition hint.hpp:138
bool operator!=(hint const &hint, std::string str)
Convenience methods to compare against an index name.
Definition hint.hpp:143
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
The top-level namespace within which all mongocxx library entities are declared.
Provides mongocxx::v1::replace_one_result.
Declares mongocxx::v_noabi::result::replace_one.
Provides entities used to represent BSON types.
Provides std::optional-related polyfills for library API usage.
Provides mongocxx::v_noabi::result::bulk_write.