Skip to main content

A C++ style vector implementation for Python

Project description

cppvector

A C++ style vector implementation for Python.

Installation

pip install cppvector

Usage

from cppvector import Vector

# Create a vector
v = Vector()

# Add elements
v.push_back(1)
v.push_back(2)
v.push_back(3)

# Access elements
print(v[0])  # Output: 1

# Size and capacity
print(v.size())
print(v.capacity())

Features

  • Dynamic array with automatic resizing
  • C++ STL vector-like interface
  • Efficient memory management

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cppvector_jediz-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cppvector_jediz-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file cppvector_jediz-0.1.0.tar.gz.

File metadata

  • Download URL: cppvector_jediz-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for cppvector_jediz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 345626d481f27ece2e9a4f95d311384b053d26ad307c46cc077db8dcb18a63a3
MD5 85dc3c78f552ff632fd561f62b29a546
BLAKE2b-256 f0842f2115a3a8f3652dd44ec4170ad93b0d75fc5536f38ab5353a069c6c9697

See more details on using hashes here.

File details

Details for the file cppvector_jediz-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cppvector_jediz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f21d9d2f0dcee81e8c222ac540a2a489fdd37ae7b17976fe3099c7b36b4b0fdf
MD5 470ccb32ce56568b693108fa587b1735
BLAKE2b-256 8b2faaef8d306a6d2db5c1b59c94d538a01b1b7d5520c4a0495edffda4a58b53

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page