Skip to content

Sky++ is a c++ stl extension that doesn't require any dependencies and provides many cool and useful features out-of-the-box,

Notifications You must be signed in to change notification settings

devpython88/skyPlusPlus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sky++

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.

About

Sky++ is a c++ stl extension that doesn't require any dependencies and provides many cool and useful features out-of-the-box,

Resources

Stars

Watchers

Forks

Packages

No packages published