Partager via


Map.empty Method

Definition

Determines whether the map contains any (key, value) pairs.

public:
 bool empty();
public bool empty ();
member this.empty : unit -> bool
Public Function empty () As Boolean

Returns

true if the map does not contain any elements; otherwise, false.

Remarks

This method is equivalent to (elements() == 0).

Applies to