mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:14:12 +08:00
mdbx++: add operator<<(ostream, pair_result)
.
Change-Id: I44cc28f7f4f7d65225239d62f5bb8a15a8de16a8
This commit is contained in:
parent
e3f32ec6b4
commit
586e25c48c
1
mdbx.h++
1
mdbx.h++
@ -2679,6 +2679,7 @@ public:
|
||||
|
||||
LIBMDBX_API ::std::ostream &operator<<(::std::ostream &, const slice &);
|
||||
LIBMDBX_API ::std::ostream &operator<<(::std::ostream &, const pair &);
|
||||
LIBMDBX_API ::std::ostream &operator<<(::std::ostream &, const pair_result &);
|
||||
template <class ALLOCATOR>
|
||||
inline ::std::ostream &operator<<(::std::ostream &out,
|
||||
const buffer<ALLOCATOR> &it) {
|
||||
|
@ -1297,6 +1297,11 @@ __cold ::std::ostream &operator<<(::std::ostream &out, const pair &it) {
|
||||
return out << "{" << it.key << " => " << it.value << "}";
|
||||
}
|
||||
|
||||
__cold ::std::ostream &operator<<(::std::ostream &out, const pair_result &it) {
|
||||
return out << "{" << (it.done ? "done: " : "non-done: ") << it.key << " => "
|
||||
<< it.value << "}";
|
||||
}
|
||||
|
||||
__cold ::std::ostream &operator<<(::std::ostream &out,
|
||||
const ::mdbx::env::geometry::size &it) {
|
||||
switch (it.bytes) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user