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 = T

    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
  • Range Assigner.

    Type parameters

    Parameters

    • first: InputIterator

      Input iteartor of the first position.

    • last: InputIterator

      Input iterator of the last position.

    Returns 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
  • Erase an element.

    Parameters

    • pos: IteratorT

      Position to erase.

    Returns IteratorT

    Iterator following the pos, strained by the erasing.

  • Erase elements in range.

    Parameters

    • first: IteratorT

      Range of the first position to erase.

    • last: IteratorT

      Rangee of the last position to erase.

    Returns IteratorT

    Iterator following the last removed element, strained by the erasing.

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