Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FlatMultiSet<Key>

Multiple-key Set based on sorted array.

author

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

Type parameters

  • Key

Hierarchy

Implements

Index

Constructors

constructor

Methods

[Symbol.iterator]

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

assign

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

begin

  • begin(): FlatMultiSet.Iterator<Key>

clear

  • clear(): void

count

  • count(key: Key): number

empty

  • empty(): boolean

end

  • end(): FlatMultiSet.Iterator<Key>

equal_range

  • equal_range(key: Key): Pair<FlatMultiSet.Iterator<Key>, FlatMultiSet.Iterator<Key>>

erase

  • erase(key: Key): number
  • erase(pos: FlatMultiSet.Iterator<Key>): FlatMultiSet.Iterator<Key>
  • erase(first: FlatMultiSet.Iterator<Key>, last: FlatMultiSet.Iterator<Key>): FlatMultiSet.Iterator<Key>

find

  • find(key: Key): FlatMultiSet.Iterator<Key>

has

  • has(key: Key): boolean

insert

  • insert(key: Key): FlatMultiSet.Iterator<Key>
  • insert(hint: FlatMultiSet.Iterator<Key>, key: Key): FlatMultiSet.Iterator<Key>
  • insert<InputIterator>(begin: InputIterator, end: InputIterator): void

key_comp

  • key_comp(): Comparator<Key>

lower_bound

  • lower_bound(key: Key): FlatMultiSet.Iterator<Key>

merge

nth

  • nth(index: number): FlatMultiSet.Iterator<Key>

push

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

rbegin

  • rbegin(): FlatMultiSet.ReverseIterator<Key>

rend

  • rend(): FlatMultiSet.ReverseIterator<Key>

size

  • size(): number

swap

toJSON

  • toJSON(): Array<Key>

upper_bound

  • upper_bound(key: Key): FlatMultiSet.Iterator<Key>

value_comp

  • value_comp(): Comparator<Key>

Generated using TypeDoc