Allow getting size of dynamic format arg store (#4270)

This commit is contained in:
Hannes Harnisch
2024-12-19 04:54:35 +01:00
committed by GitHub
parent 873670ba3f
commit 7c50da5385
2 changed files with 17 additions and 0 deletions

View File

@@ -210,6 +210,9 @@ template <typename Context> class dynamic_format_arg_store {
data_.reserve(new_cap);
named_info_.reserve(new_cap_named);
}
/// Returns the number of elements in the store.
size_t size() const noexcept { return data_.size(); }
};
FMT_END_NAMESPACE