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:
@ -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>>;
|
||||
|
Reference in New Issue
Block a user