21 #include <bsoncxx/string/view_or_value.hpp>
23 #include <bsoncxx/config/prelude.hpp>
26 BSONCXX_INLINE_NAMESPACE_BEGIN
38 class BSONCXX_API
oid {
70 explicit oid(
const char* bytes, std::size_t len);
85 std::string to_string()
const;
94 friend BSONCXX_API
bool BSONCXX_CALL operator<(
const oid& lhs,
const oid& rhs);
95 friend BSONCXX_API
bool BSONCXX_CALL operator>(
const oid& lhs,
const oid& rhs);
96 friend BSONCXX_API
bool BSONCXX_CALL operator<=(
const oid& lhs,
const oid& rhs);
97 friend BSONCXX_API
bool BSONCXX_CALL operator>=(
const oid& lhs,
const oid& rhs);
98 friend BSONCXX_API
bool BSONCXX_CALL operator==(
const oid& lhs,
const oid& rhs);
99 friend BSONCXX_API
bool BSONCXX_CALL operator!=(
const oid& lhs,
const oid& rhs);
109 explicit operator bool()
const;
116 std::time_t get_time_t()
const;
123 const char* bytes()
const;
126 friend BSONCXX_PRIVATE
int oid_compare(
const oid& lhs,
const oid& rhs);
130 std::array<char, 12> _bytes;
133 BSONCXX_INLINE_NAMESPACE_END
136 #include <bsoncxx/config/postlude.hpp>
Represents a MongoDB ObjectId.
Definition: oid.hpp:38
Class representing a view-or-value variant type for strings.
Definition: view_or_value.hpp:36
Definition: element.hpp:24