IQueue<TValue,TCont>.size 方法

定义

计算容器中的元素数。Counts the number of elements in the container.

public:
 int size();
public int size ();
abstract member size : unit -> int
Public Function size () As Integer

返回

Int32

受控序列的长度。The length of the controlled sequence.

注解

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

适用于