IStack<TValue,TCont> Interface

Definição

Define a interface de um objeto stack do STL/CLR.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

Parâmetros de tipo

TValue

O tipo de um elemento na sequência controlada.The type of an element in the controlled sequence.

TCont

O tipo do contêiner subjacente.The type of the underlying container.

Implementações

Propriedades

top_item

Acessa o último elemento do contêiner.Accesses the last element of the container.

Métodos

assign(IStack<TValue,TCont>)

Substitui todos os elementos no contêiner pelos elementos no contêiner fornecido.Replaces all elements in the container with the elements in the provided container.

Clone()

Cria um novo objeto que é uma cópia da instância atual.Creates a new object that is a copy of the current instance.

(Herdado de ICloneable)
empty()

Determina se o contêiner não contém nenhum elemento.Determines whether the container contains no elements.

get_container()

Acessa o contêiner subjacente.Accesses the underlying container.

pop()

Remove o último elemento do contêiner.Removes the last element of the container.

push(TValue)

Acrescenta um elemento ao contêiner.Appends an element to the container.

size()

Conta o número de elementos no contêiner.Counts the number of elements in the container.

top()

Acessa o último elemento do contêiner.Accesses the last element of the container.

Aplica-se a