mdbx++: add full mdbx::env_managed::geometry() for convenience.

Change-Id: Ib132c776bfc503336582b672de1c44fcac286936
This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2022-03-03 17:01:08 +03:00
parent 4b130bd82c
commit 8c2efe3aaa

View File

@ -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.