template<typename T = std::monostate>
class seastar::program_options::value< T >
A configuration option value.
- Template Parameters
-
T | the type of the contained value. |
|
| value (option_group &group, std::string name, std::optional< T > default_value, std::string description) |
|
| value (option_group &group, std::string name, unused) |
| Construct an unused value.
|
|
| value (value &&)=default |
|
| operator bool () const |
| Is there a contained value?
|
|
bool | defaulted () const |
| Does this value still contain a default-value?
|
|
const T & | get_value () const |
| Return the contained value, assumes there is one, see operator bool().
|
|
T & | get_value () |
|
void | set_default_value (T value) |
|
void | set_value (T value) |
|
bool | used () const |
|
const std::string & | name () const |
|
const std::string & | description () const |
|
void | describe (options_descriptor &descriptor) const |
|
void | mutate (options_mutator &mutator) |
|