"count" (mapping::count)

Returns the number of keys.

Synopsis

int mapping.count();

Parameters

Parameter Description
- -

Description

Returns the number of key/value pairs in the mapping.

Example

main()
{
  mapping m = makeMapping("city", "Vienna", "country", "Austria");
  DebugN(m.count()); // 2
}

Assignment

Mapping