Template Function array_index

Function Documentation

template<typename BasicJsonType>
static BasicJsonType::size_type array_index(const string_t &s)
Parameters:

s[in] reference token to be converted into an array index

Throws:
  • parse_error.106 – if an array index begins with ‘0’

  • parse_error.109 – if an array index begins not with a digit

  • out_of_range.404 – if string s could not be converted to an integer

  • out_of_range.410 – if an array index exceeds size_type

Returns:

integer representation of s