SettingToBool

Convert a settings value to an optional boolean.

Synopsis

Declared in <common/args.h>

std::optional<bool>
SettingToBool(common::SettingsValue const& value);

Return Value

The boolean value, or std::nullopt when unset.

Parameters

NameDescription
valueThe settings value to convert.