Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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.6, 4.5, 4, 3.5
© 2015 Microsoft