IStack<TValue,TCont>.empty 方法

定义

确定容器是否不包含任何元素。Determines whether the container contains no elements.

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

返回

Boolean

如果容器不包含任何元素,则为 true;否则为 falsetrue if the container contains no elements; otherwise, false.

注解

有关详细信息,请参阅 stack:: empty (STL/CLR) For more information, see stack::empty (STL/CLR).

适用于