mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-31 10:58:20 +08:00
mdbx++: minor refine/add comments.
Change-Id: I8e33a762ea86584a63813cf6c3814a95ba44f37b
This commit is contained in:
parent
fd57088906
commit
e2216f70f5
5
mdbx.h++
5
mdbx.h++
@ -161,8 +161,11 @@ namespace mdbx {
|
|||||||
// Functions whose signature depends on the `mdbx::byte` type
|
// Functions whose signature depends on the `mdbx::byte` type
|
||||||
// must be strictly defined as inline!
|
// must be strictly defined as inline!
|
||||||
#if defined(DOXYGEN) || (defined(__cpp_char8_t) && __cpp_char8_t >= 201811)
|
#if defined(DOXYGEN) || (defined(__cpp_char8_t) && __cpp_char8_t >= 201811)
|
||||||
|
// Wanna using a non-aliasing type to release more power of an optimizer.
|
||||||
using byte = char8_t;
|
using byte = char8_t;
|
||||||
#else
|
#else
|
||||||
|
// Wanna not using std::byte since it doesn't add features,
|
||||||
|
// but add inconvenient restrictions.
|
||||||
using byte = unsigned char;
|
using byte = unsigned char;
|
||||||
#endif /* __cpp_char8_t >= 201811*/
|
#endif /* __cpp_char8_t >= 201811*/
|
||||||
|
|
||||||
@ -2613,7 +2616,7 @@ public:
|
|||||||
/// map handle.
|
/// map handle.
|
||||||
inline void bind(::mdbx::txn &txn, ::mdbx::map_handle map_handle);
|
inline void bind(::mdbx::txn &txn, ::mdbx::map_handle map_handle);
|
||||||
|
|
||||||
/// \brief Return the cursor's transaction.
|
/// \brief Returns the cursor's transaction.
|
||||||
inline ::mdbx::txn txn() const;
|
inline ::mdbx::txn txn() const;
|
||||||
inline map_handle map() const;
|
inline map_handle map() const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user