Skip to content

WayLib provides useful functions and data structures, many of them are inspired by Java/Kotlin

License

Notifications You must be signed in to change notification settings

YiRanMushroom/WayLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WayLib is a open source library developed by Yiran Wang, which is originally for many of his small projects. It is a C++ library that provides some useful functions and classes for general use. It is still under development and will be updated from time to time. The library is designed to be easy to use and easy to understand.

WayLib is (hopefully) an inline header only library, which means you can simply copy the include directory into your own project, and include the header files in your source code.

WayLib is only for C++23 or later (with a few exceptions), and can now only be compiled using MSVC. I will try to make it compatible with other compilers in the future.

WayLib is now trying to support all compiler at C++ 17 standard, some source files are fully compatible with C++ 17, but some are not. (Below is a list of source files that are compatible with C++ 17.)

If you want to use this lib, simply copy the WayLib directory into your own project, and add the "WayLib/include" directory to your include path. Then you can include the header files in your source code.

This is an example of how to include the header files in your source code, I used this in this project's CMakeLists.txt file:

# Please add WayLib/include to your include path, like this, assuming your project is called _Example_Project_, and the WayLib directory is in the root directory (with CMakeLists.txt):
# This is an example of how to include the header files in your source code.

include_directories(${CMAKE_SOURCE_DIR}/WayLib/include
#                   ...(other include directories that you need)
)

# This line must be added before the add_executable or add_library command.

This should be enough to get you started. If you have any questions or suggestions, please feel free to contact me. I will be happy to help you. Thank you for using WayLib!

Source files that are compatible with C++ 17 (others may be compatible, but I haven't tested them yet):

Util/Range/* Util/ThreadPool.hpp

About

WayLib provides useful functions and data structures, many of them are inspired by Java/Kotlin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published