mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-11-27 05:16:18 +08:00
Add interfaces for jwt-cpp compatibility (#479)
Co-authored-by: Ali Girayhan Ozbay <aligirayhan.ozbay@abex.capital>
This commit is contained in:
co-authored by
Ali Girayhan Ozbay
parent
3dc74c9596
commit
ca53b225bf
@@ -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(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user