A compilation of small and common functions, divided into seperate headers to make the dev life easier.
Just include RPCommon.h
or one (or more) of the headers to get either all functions or just the ones you need :)
NOTE If installed through the PKGBUILD the include command for RPCommon
will be #include <RPCommon/RPCommon.h>
or in case of a single header #include <RPCommon/<header_name_here>
#include "RPCommon.h"
int main()
{
std::string revThis = "sihTver";
std::cout << ReverseString(revThis) << std::endl;
return 0;
}
or in this case, where only ReverseString()
is needed, you could also just do:
#include "strreverse.h"
int main()
{
std::string revThis = "sihTver";
std::cout << ReverseString(revThis) << std::endl;
return 0;
}
List of Functions included + Documentation can be found here