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

Name

Description

value

The settings value to convert.

Created with MrDocs