Uredi

Deli z drugimi prek


IStack<TValue,TCont> Interface

Definition

Defines the interface of an STL/CLR stack object.

generic <typename TValue, typename TCont>
public interface class IStack : ICloneable
public interface IStack<TValue,TCont> : ICloneable
type IStack<'Value, 'Cont> = interface
    interface ICloneable
Public Interface IStack(Of TValue, TCont)
Implements ICloneable

Type Parameters

TValue

The type of an element in the controlled sequence.

TCont

The type of the underlying container.

Implements

Properties

top_item

Accesses the last element of the container.

Methods

assign(IStack<TValue,TCont>)

Replaces all elements in the container with the elements in the provided container.

Clone()

Creates a new object that is a copy of the current instance.

(Inherited from ICloneable)
empty()

Determines whether the container contains no elements.

get_container()

Accesses the underlying container.

pop()

Removes the last element of the container.

push(TValue)

Appends an element to the container.

size()

Counts the number of elements in the container.

top()

Accesses the last element of the container.

Applies to