irccd  3.0.3
Static Public Member Functions | List of all members
irccd::json_util::type_traits< bool > Struct Reference

Specialization for bool. More...

#include <json_util.hpp>

Static Public Member Functions

static auto get (const nlohmann::json &value) noexcept -> std::optional< bool >
 

Detailed Description

Specialization for bool.

Member Function Documentation

◆ get()

static auto irccd::json_util::type_traits< bool >::get ( const nlohmann::json &  value) -> std::optional< bool >
staticnoexcept

Convert the JSON value to bool.

Parameters
valuethe value
Returns
the bool or empty if not a boolean type

The documentation for this struct was generated from the following file: