From 8c2efe3aaa2721d7c713d7938b02c5dc1947c765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Thu, 3 Mar 2022 17:01:08 +0300 Subject: [PATCH] mdbx++: add full `mdbx::env_managed::geometry()` for convenience. Change-Id: Ib132c776bfc503336582b672de1c44fcac286936 --- mdbx.h++ | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mdbx.h++ b/mdbx.h++ index 263526c2..b72e0ccb 100644 --- a/mdbx.h++ +++ b/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.