:sparkles: A collection of convenience functions to make sparse bits of development and testing easier.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Luiserebii 5aa2119f08
Breaking out vector-specific functions to own file
1 week ago
examples Breaking out vector-specific functions to own file 1 week ago
include/navi Breaking out vector-specific functions to own file 1 week ago
.gitignore Breaking out vector-specific functions to own file 1 week ago
CMakeLists.txt Making proper edits to CMakeLists.txt 1 week ago
LICENSE Adding LICENSE 3 weeks ago
README.md Breaking out vector-specific functions to own file 1 week ago

README.md

Navi

navi-image

A collection of convenience functions to make sparse bits of development and testing easier. Much like a certain fairy, Navi is intended to make quick things simple. Still in development, and untested. Not necessarily for use in production code.

Installation

A CMakeLists.txt file has been added for simple linking with CMake. For more on this, check the examples/ directory.

Usage

Using Navi should be fairly simple. A quick example:

#include <iostream>
#include <vector>
#include <navi/container.h>

using std::cout;
using std::vector;

int main() {

    //Initialize vector with 10 elements
    vector<int> v(10);

    //Fill a vector with random integers (type-hint by passing an integer in the third parameter)
    Navi::fill(v.begin(), v.end(), 0);

    //Print the vector to console
    Navi::write(v.begin(), v.end(), cout);
}