JSON for Modern C++  3.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 NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
template<typename T , typename std::enable_if< not(std::is_same< T, int >::value) and std::is_same< T, number_integer_t >::value, int >::type = 0>
nlohmann::basic_json::basic_json ( const number_integer_t  value)
inline

Create an interger number JSON value with a given content.

Template Parameters
Thelper type to compare number_integer_t and int (not visible in) the interface.
Parameters
[in]valuean integer to create a JSON number from
Note
This constructor would have the same signature as basic_json(const int value), so we need to switch this one off in case number_integer_t is the same as int. This is done via the helper type T.
Complexity
Constant.
Todo:
Add example.
See also
basic_json(const int)