Sky++ is C++ STL extension library which provides you with:
- Better strings (string.hpp)
- Better lists (vector.hpp)
- Better RNG (random.hpp)
- Better Printing (print.hpp)
The classes C++ already has (such as std::string, std::vector) are parents of the Sky++ extensions
Meaning sky::string
is a subclass of std::string
and the same goes for sky::vector
.
Sky++ aims to simplify what the C++ STL hasn't.
Sky++ is also a headers-only and no-dependency library.
Meaning you can simply take the rar file, and put the files from the include
directory into your project right-off-the-bat.
And also I the print.hpp file is just a recreated version of the upcoming <print>
module in C++23.
Example:
#include "sky++.hpp"
int main(int argc, char const *argv[])
{
sky::vector<int> nums;
sky::randomizer rd; // you can also pass a custom seed
nums.push_back(rd.next_int(0, 30));
nums.push_back(rd.next_int(0, 30));
nums.push_back(rd.next_int(0, 30));
// nums.pop(2); -> int
sky::println("The numbers are: ", nums.join(" and "));
return 0;
}
Expected Output: The numbers are 23 and 30 and 16
Those are just placeholder values, Obviously the numbers are random.