Commit 8018e8f7 authored by Dominik Charousset's avatar Dominik Charousset

Add missing function overloads

parent ec30abdd
...@@ -53,6 +53,9 @@ public: ...@@ -53,6 +53,9 @@ public:
/// An iterator over ::config_option unique pointers. /// An iterator over ::config_option unique pointers.
using iterator = option_vector::iterator; using iterator = option_vector::iterator;
/// An iterator over ::config_option unique pointers.
using const_iterator = option_vector::const_iterator;
/// Maps string keys to arbitrary (config) values. /// Maps string keys to arbitrary (config) values.
using dictionary = caf::dictionary<config_value>; using dictionary = caf::dictionary<config_value>;
...@@ -89,11 +92,21 @@ public: ...@@ -89,11 +92,21 @@ public:
return opts_.begin(); return opts_.begin();
} }
/// Returns an iterator to the first ::config_option object.
const_iterator begin() const noexcept {
return opts_.begin();
}
/// Returns the past-the-end iterator. /// Returns the past-the-end iterator.
iterator end() noexcept { iterator end() noexcept {
return opts_.end(); return opts_.end();
} }
/// Returns the past-the-end iterator.
const_iterator end() const noexcept {
return opts_.end();
}
/// Adds a config option to the set. /// Adds a config option to the set.
template <class T> template <class T>
config_option_set& add(string_view category, string_view name, config_option_set& add(string_view category, string_view name,
......
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