Commit d4141bf7 authored by Max Kellermann's avatar Max Kellermann

lib/dbus/ReadIter: add API documentation

parent 6c81fa1e
......@@ -74,10 +74,18 @@ public:
return value;
}
/**
* Create a new iterator which recurses into a container
* value.
*/
ReadMessageIter Recurse() noexcept {
return {RecurseTag(), *this};
}
/**
* Invoke a function for each element (including the current
* one), as long as the argument type is the specified one.
*/
template<typename F>
void ForEach(int arg_type, F &&f) {
for (; GetArgType() == arg_type; Next())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment