JSON for Modern C++  2.0.0
template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberUnsignedType = uint64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
template<typename CompatibleNumberUnsignedType , typename std::enable_if< std::is_constructible< number_unsigned_t, CompatibleNumberUnsignedType >::value and std::numeric_limits< CompatibleNumberUnsignedType >::is_integer and !std::numeric_limits< CompatibleNumberUnsignedType >::is_signed, CompatibleNumberUnsignedType >::type = 0>
nlohmann::basic_json::basic_json ( const CompatibleNumberUnsignedType  val)
inlinenoexcept

Create an unsigned number JSON value with a given content. This constructor allows any type CompatibleNumberUnsignedType that can be used to construct values of type number_unsigned_t.

Template Parameters
CompatibleNumberUnsignedTypeAn integer type which is compatible to number_unsigned_t. Examples may include the types unsigned int, uint32_t, or unsigned short.
Parameters
[in]valan unsigned integer to create a JSON number from
Complexity
Constant.
See also
basic_json(const number_unsigned_t) – create a number value (unsigned)
Since
version 2.0.0

Definition at line 1369 of file json.hpp.