"clear" (mapping::clear)

Empties the mapping.

Synopsis

int mapping.clear();

Parameters

Parameter Description
- -

Description

Removes all key/value pairs from the mapping.

Example

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

Assignment

Mapping