Skip to content
/ lib Public

My personal collection of useful C++ containers and function templates.

License

Notifications You must be signed in to change notification settings

wijagels/lib

Repository files navigation

lib

My personal collection of useful C++ containers and function templates.

Building and Testing

This project uses CMake, the tests can be built with a C++14 compatible compiler.

mkdir build && cd build
cmake ..
make test

The unit tests require Boost.Test. Eventually the tests will run with gcov on some sort of continuous integration server. I suggest running the test executables with perf(1).

Contents

Decorators

A generic decorator function template which wraps any function with a begin and end hook. This is particularly useful if you want to time a function. The goal is to make it usable for memoization, similar to Python Decorators.

List

Essentially an implementation of the STL list. Allocator aware, and supports the latest standard's api. Implemented as a doubly linked, circular linked list with a single sentinel node. In theory, it can be used in place of std::list. Still needs alot more tests.

Point

An n-dimensional point class template. The idea here is to make common operations on points less prone to errors. The header includes orthogonal projections, euclidean distance, Manhattan distance, and some common operators.

Vector

STL vector implementation.

License

This project is licensed under the MIT License. See the license text in LICENSE.md.

About

My personal collection of useful C++ containers and function templates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published