mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
mdbx++: add full mdbx::env_managed::geometry()
for convenience.
Change-Id: Ib132c776bfc503336582b672de1c44fcac286936
This commit is contained in:
parent
4b130bd82c
commit
8c2efe3aaa
12
mdbx.h++
12
mdbx.h++
@ -2960,6 +2960,18 @@ public:
|
||||
inline geometry &make_fixed(intptr_t size) noexcept;
|
||||
inline geometry &make_dynamic(intptr_t lower = minimal_value,
|
||||
intptr_t upper = maximal_value) noexcept;
|
||||
MDBX_CXX11_CONSTEXPR geometry() noexcept {}
|
||||
MDBX_CXX11_CONSTEXPR
|
||||
geometry(const geometry &) noexcept = default;
|
||||
MDBX_CXX11_CONSTEXPR geometry(intptr_t size_lower,
|
||||
intptr_t size_now = default_value,
|
||||
intptr_t size_upper = maximal_value,
|
||||
intptr_t growth_step = default_value,
|
||||
intptr_t shrink_threshold = default_value,
|
||||
intptr_t pagesize = default_value) noexcept
|
||||
: size_lower(size_lower), size_now(size_now), size_upper(size_upper),
|
||||
growth_step(growth_step), shrink_threshold(shrink_threshold),
|
||||
pagesize(pagesize) {}
|
||||
};
|
||||
|
||||
/// \brief Operation mode.
|
||||
|
Loading…
x
Reference in New Issue
Block a user