Add interfaces for jwt-cpp compatibility (#479)

Co-authored-by: Ali Girayhan Ozbay <aligirayhan.ozbay@abex.capital>
This commit is contained in:
aligirayhanozbay
2025-08-12 15:44:28 +02:00
committed by GitHub
co-authored by Ali Girayhan Ozbay
parent 3dc74c9596
commit ca53b225bf
+2
View File
@@ -90,6 +90,8 @@ class Object {
/// The number of elements currently inside the object.
auto size() const { return data_.size(); }
std::size_t count(const key_type& key) const { return std::count_if(cbegin(), cend(), [&](const auto& p) { return p.first == key; }); }
/// The maximum possible size.
auto max_size() const { return data_.max_size(); }