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

This commit is contained in:
Hannes Harnisch authored and GitHub committed 2024-12-18 19:54:35 -08:00
1 parent 873670ba3f
commit 7c50da5385
2 files changed
+17

No files matched your search

+3
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