1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Make method provider_options::for_each() const

Also, add a comment for the method and fix formatting
This commit is contained in:
Daniele Sciascia
2025-05-19 15:56:19 +02:00
parent 39d5f22cb0
commit adf464474d
2 changed files with 12 additions and 5 deletions

View File

@ -253,7 +253,13 @@ namespace wsrep
std::unique_ptr<option_value> value,
std::unique_ptr<option_value> default_value, int flags);
void for_each(const std::function<void(option*)>& fn);
/**
* Invoke the given function with each provider option
* as argument.
*
* @param fn Function to call for each option
*/
void for_each(const std::function<void(option*)>& fn) const;
private:
using options_map = std::map<std::string, std::unique_ptr<option>>;