Export (0) Print
Expand All

IStack<TValue, TCont> Interface

Defines the interface of an STL/CLR stack object.

Namespace:  Microsoft.VisualC.StlClr
Assembly:  Microsoft.VisualC.STLCLR (in Microsoft.VisualC.STLCLR.dll)

public interface IStack<TValue, TCont> : ICloneable

Type Parameters


The type of an element in the controlled sequence.


The type of the underlying container.

The IStack<TValue, TCont> type exposes the following members.

Public propertytop_itemAccesses the last element of the container.

Public methodassignReplaces all elements in the container with the elements in the provided container.
Public methodCloneCreates a new object that is a copy of the current instance. (Inherited from ICloneable.)
Public methodemptyDetermines whether the container contains no elements.
Public methodget_containerAccesses the underlying container.
Public methodpopRemoves the last element of the container.
Public methodpushAppends an element to the container.
Public methodsizeCounts the number of elements in the container.
Public methodtopAccesses the last element of the container.

.NET Framework

Supported in: 4.5.3, 4, 3.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft