38 static constexpr std::size_t k_oid_length = 12;
80 static std::
size_t size() {
115 friend int oid_compare(
oid const& lhs,
oid const& rhs);
117 std::array<char, k_oid_length> _bytes;
#define BSONCXX_ABI_EXPORT_CDECL(...)
Equivalent to BSONCXX_ABI_EXPORT with BSONCXX_ABI_CDECL.
Definition export.hpp:52
The bsoncxx v_noabi macro guard postlude header.
The bsoncxx v_noabi macro guard prelude header.
oid()
Constructs an oid and initializes it to a newly generated ObjectId.
std::string to_string() const
Converts this oid to a hexadecimal string.
friend bool operator>=(oid const &lhs, oid const &rhs)
Relational operators for OIDs.
static std::size_t size()
Returns the number of bytes in this ObjectId.
Definition oid.hpp:80
friend bool operator!=(oid const &lhs, oid const &rhs)
Relational operators for OIDs.
std::time_t get_time_t() const
Extracts the timestamp portion of the underlying ObjectId.
oid()
Constructs an oid and initializes it to a newly generated ObjectId.
friend bool operator<(oid const &lhs, oid const &rhs)
Relational operators for OIDs.
friend bool operator==(oid const &lhs, oid const &rhs)
Relational operators for OIDs.
friend bool operator<=(oid const &lhs, oid const &rhs)
Relational operators for OIDs.
char const * bytes() const
An accessor for the internal data buffer in the oid.
friend bool operator>(oid const &lhs, oid const &rhs)
Relational operators for OIDs.
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.
Declares bsoncxx::v_noabi::oid.
Provides std::string_view-related polyfills for library API usage.