clear method

void clear()

Removes all items from the map.

Implementation

void clear() {
  final hr = ptr.ref.lpVtbl.value
      .elementAt(12)
      .cast<Pointer<NativeFunction<HRESULT Function(Pointer)>>>()
      .value
      .asFunction<int Function(Pointer)>()(ptr.ref.lpVtbl);

  if (FAILED(hr)) throw WindowsException(hr);
}