This documentation is archived and is not being maintained.

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)

generic<typename TValue, typename TCont>
public interface class IStack : ICloneable

Type Parameters

TValue

The type of an element in the controlled sequence.

TCont

The type of the underlying container.

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

  NameDescription
Public propertytop_itemAccesses the last element of the container.
Top

  NameDescription
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.
Top

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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