*The contents of this repo have now transferred to https://github.com/Clonkk/nim-cppstl. This repo has been archived as of 2021/06/28.*
Nim wrapper to map with the C++ std::vector
library.
My goal is not to create a wrapper that wraps to 100% of the C++ library.
I will gradually update the wrapper as I find need for procs from the original library.
nimble install https://github.com/kaushalmodi/std_vector
- Compile
nim
with thecpp
backend. Example:nim cpp -r src/std_vector.nim
- https://en.cppreference.com/w/cpp/container/vector
- https://forum.nim-lang.org/t/5787
- nim-lang/Nim#9685 (comment)
- https://forum.nim-lang.org/t/3401
- https://nim-lang.github.io/Nim/manual.html#importcpp-pragma-importcpp-for-objects
- https://nim-lang.github.io/Nim/manual.html#importcpp-pragma-importcpp-for-procs