cpplib.VectorInt

class cpplib.VectorInt
__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: cpplib_pybind.VectorInt, arg0: buffer) -> None

  2. __init__(self: cpplib_pybind.VectorInt) -> None

  3. __init__(self: cpplib_pybind.VectorInt, arg0: cpplib_pybind.VectorInt) -> None

Copy constructor

  1. __init__(self: cpplib_pybind.VectorInt, arg0: Iterable) -> None

append(self: cpplib_pybind.VectorInt, x: int) → None

Add an item to the end of the list

clear(self: cpplib_pybind.VectorInt) → None

Clear the contents

count(self: cpplib_pybind.VectorInt, x: int) → int

Return the number of times x appears in the list

extend(*args, **kwargs)

Overloaded function.

  1. extend(self: cpplib_pybind.VectorInt, L: cpplib_pybind.VectorInt) -> None

Extend the list by appending all the items in the given list

  1. extend(self: cpplib_pybind.VectorInt, L: Iterable) -> None

Extend the list by appending all the items in the given list

insert(self: cpplib_pybind.VectorInt, i: int, x: int) → None

Insert an item at a given position.

pop(*args, **kwargs)

Overloaded function.

  1. pop(self: cpplib_pybind.VectorInt) -> int

Remove and return the last item

  1. pop(self: cpplib_pybind.VectorInt, i: int) -> int

Remove and return the item at index i

remove(self: cpplib_pybind.VectorInt, x: int) → None

Remove the first item from the list whose value is x. It is an error if there is no such item.