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

Specialization for std::uint16_t. More...

#include <json_util.hpp>

Static Public Member Functions

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

Detailed Description

Specialization for std::uint16_t.

Member Function Documentation

◆ get()

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

Convert the JSON value to std::uint16_t.

Parameters
valuethe value
Returns
the value or empty if value does not fit between the range

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