utils: small_vector: expose internal_capacity()

So we can use it for defining other small_vector
deriving their internal capacity from another small_vector
type.

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
Benny Halevy
2024-12-20 09:12:11 +02:00
parent 3a3df43799
commit 4af522f61e

View File

@@ -251,6 +251,10 @@ public:
}
}
static constexpr size_t internal_capacity() noexcept {
return N;
}
size_t external_memory_usage() const {
if (uses_internal_storage()) {
return 0;