-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Aaron Carroll edited this page Mar 9, 2023
·
3 revisions
You are much better off using the C++ standard containers. This library is more to learn about how they may have or have defined the containers without all the redirection and allocation specific code found in the stl_vector.h file.
We will use "stl_implementation_practice/include/Vector.h" for the examples below. Change the /Vector.h to the container inside "stl_implementation_practice/include" you wish to use.
You an download from this page or you can clone via the following.
git clone https://github.com/PIesPnuema/stl_implemetation_practice.git
Configure your PATH so the program that calls it can find the "stl_implementation_practice/include/Vector.h" file (This assumes you know how).
After configuring your path include this line inside your program.
#include "stl_implementation_practice/include/Vector.h"
include the header files inside your projects library files.
- absolute path
#include "home/username/path/to/directory/stl_implementation_practice/include/Vector.h"
- relative path if included in project
#include "./Your_include_dir/Vector.h"
- Remember to use namespace