Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Container<T, SourceT, IteratorT, ReverseT, PElem>

Basic container.

author

Jeongho Nam - https://github.com/samchon

Type parameters

  • T: PElem

    Stored elements' type

  • SourceT: Container<T, SourceT, IteratorT, ReverseT, PElem>

    Derived type extending this Container

  • IteratorT: Iterator<T, SourceT, IteratorT, ReverseT, PElem>

    Iterator type

  • ReverseT: ReverseIterator<T, SourceT, IteratorT, ReverseT, PElem>

    Reverse iterator type

  • PElem

    Parent type of T, used for inserting elements through assign and insert.

Hierarchy

Implements

  • IContainer<T, SourceT, IteratorT, ReverseT, PElem>

Index

Methods

[Symbol.iterator]

  • [Symbol.iterator](): IterableIterator<T>

Abstract assign

  • assign<InputIterator>(first: InputIterator, last: InputIterator): void

Abstract begin

  • begin(): IteratorT

Abstract clear

  • clear(): void

empty

  • empty(): boolean

Abstract end

  • end(): IteratorT

Abstract erase

  • erase(pos: IteratorT): IteratorT
  • erase(first: IteratorT, last: IteratorT): IteratorT

Abstract push

  • push(...items: PElem[]): number

rbegin

  • rbegin(): ReverseT

rend

  • rend(): ReverseT

Abstract size

  • size(): number

Abstract swap

  • swap(obj: SourceT): void

toJSON

  • toJSON(): Array<T>

Generated using TypeDoc