Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

vector: introduce generic vector type #8

Merged
merged 2 commits into from
Jul 6, 2024

Conversation

lahm86
Copy link
Collaborator

@lahm86 lahm86 commented Jul 6, 2024

This provides an implementation of a generic vector with various utility functions made available as a starting base.

Usage is a little cumbersome as we'll need to remember to cast to/from void * but this is a cost of it being generic. You could also in theory throw anything at it dangerously i.e. types of different sizes, so care will need to be taken not to mix types.

I've tested the functions externally in VS for ease - source attached for that.
VectorTest.zip

lahm86 added 2 commits July 3, 2024 09:48
The provides an implementation of a generic vector with various utility
functions made available as a starting base.
@lahm86 lahm86 requested review from rr- and walkawayy July 6, 2024 09:40
Copy link
Contributor

@walkawayy walkawayy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow nice job.

@lahm86 lahm86 merged commit 31165c6 into LostArtefacts:main Jul 6, 2024
1 check passed
@lahm86 lahm86 deleted the vector-impl branch July 6, 2024 18:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants