Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SetElementVector<Key, Unique, Source>

Vector storing set elements.

author

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

Type parameters

  • Key

    Key type

  • Unique: boolean

    Whether duplicated key is blocked or not

  • Source: ITreeSet<Key, Unique, Source, Iterator<Key, Unique, Source>, ReverseIterator<Key, Unique, Source>>

    Source type

Hierarchy

Implements

Index

Constructors

Protected constructor

Methods

[Symbol.iterator]

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

assign

  • assign(n: number, val: Key): void
  • assign<InputIterator>(begin: InputIterator, end: InputIterator): void

at

  • at(index: number): Key

back

  • back(): Key
  • back(val: Key): void

begin

  • begin(): Iterator<Key, Unique, Source>

clear

  • clear(): void

data

  • data(): Array<Key>

empty

  • empty(): boolean

end

equals

  • equals(obj: Source): boolean

erase

front

  • front(): Key
  • front(val: Key): void

insert

  • insert(pos: Iterator<Key, Unique, Source>, val: Key): Iterator<Key, Unique, Source>
  • insert(pos: Iterator<Key, Unique, Source>, n: number, val: Key): Iterator<Key, Unique, Source>
  • insert<InputIterator>(pos: Iterator<Key, Unique, Source>, first: InputIterator, last: InputIterator): Iterator<Key, Unique, Source>

pop_back

  • pop_back(): void

push

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

push_back

  • push_back(val: Key): void

rbegin

rend

resize

  • resize(n: number): void

set

  • set(index: number, val: Key): void

size

  • size(): number

swap

  • swap(obj: Source): void

toJSON

  • toJSON(): Array<Key>

Generated using TypeDoc