198 return !(lhs == rhs);
read_preference & tags(bsoncxx::v1::array::view v)
Set the "tag_sets" field.
~read_preference()
Destroy this object.
read_preference & max_staleness(std::chrono::seconds v)
Set the "maxStalenessSeconds" field.
read_preference & mode(read_mode v)
Set the "mode" field.
read_preference & hedge(bsoncxx::v1::document::view v)
Set the "hedge" field.
read_preference()
Default initialization.
read_mode
The read preference mode.
Definition read_preference.hpp:62
@ k_nearest
A random eligible member based on a specified latency threshold.
Definition read_preference.hpp:86
@ k_primary
Primary member only (default).
Definition read_preference.hpp:66
@ k_secondary_preferred
Secondary members when available, primary otherwise.
Definition read_preference.hpp:81
@ k_secondary
Secondary members only.
Definition read_preference.hpp:76
@ k_primary_preferred
Primary member when available, secondary otherwise.
Definition read_preference.hpp:71
read_preference(read_preference &&other) noexcept
Move constructor.
Provides macros to control the set of symbols exported in the ABI.
#define MONGOCXX_DEPRECATED
Declares the associated entity as deprecated.
Definition export.hpp:25
#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.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities whose ABI stability is guaranteed for documented symbols.
The top-level namespace within which all mongocxx library entities are declared.
Declares bsoncxx::v1::array::view.
Declares bsoncxx::v1::document::view.
Declares mongocxx::v1::read_preference.
Provides std::optional-related polyfills for library API usage.