Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VectorBoolean

Vector only for boolean.

author

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

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private data_

data_: TreeMap<number, boolean>

Store not full elements, but their sequence.

  • first: index
  • second: value

Private size_

size_: number

Number of elements

Methods

[Symbol.iterator]

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

assign

  • assign(n: number, val: boolean): void
  • assign<InputIterator>(first: InputIterator, last: InputIterator): void

at

  • at(index: number): boolean

back

  • back(): boolean
  • back(val: boolean): void

begin

  • begin(): VectorBoolean.Iterator

clear

  • clear(): void

empty

  • empty(): boolean

end

  • end(): VectorBoolean.Iterator

erase

  • erase(it: VectorBoolean.Iterator): VectorBoolean.Iterator
  • erase(first: VectorBoolean.Iterator, last: VectorBoolean.Iterator): VectorBoolean.Iterator

flip

  • flip(): void

front

  • front(): boolean
  • front(val: boolean): void

insert

  • insert(pos: VectorBoolean.Iterator, val: boolean): VectorBoolean.Iterator
  • insert(pos: VectorBoolean.Iterator, n: number, val: boolean): VectorBoolean.Iterator
  • insert<InputIterator>(pos: VectorBoolean.Iterator, first: InputIterator, last: InputIterator): VectorBoolean.Iterator

nth

  • nth(index: number): VectorBoolean.Iterator

pop_back

  • pop_back(): void

push

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

push_back

  • push_back(val: boolean): void

rbegin

  • rbegin(): VectorBoolean.ReverseIterator

rend

  • rend(): VectorBoolean.ReverseIterator

resize

  • resize(n: number): void

set

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

size

  • size(): number

swap

toJSON

  • toJSON(): Array<boolean>

Generated using TypeDoc