Skip to content

Commit ca53b22

Browse files
Add interfaces for jwt-cpp compatibility (#479)
Co-authored-by: Ali Girayhan Ozbay <aligirayhan.ozbay@abex.capital>
1 parent 3dc74c9 commit ca53b22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/rfl/Object.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ class Object {
9090
/// The number of elements currently inside the object.
9191
auto size() const { return data_.size(); }
9292

93+
std::size_t count(const key_type& key) const { return std::count_if(cbegin(), cend(), [&](const auto& p) { return p.first == key; }); }
94+
9395
/// The maximum possible size.
9496
auto max_size() const { return data_.max_size(); }
9597

0 commit comments

Comments
 (0)