Common header only C++ util which can be reused.
git submodule add https://github.com/xpd54/common_util.git
#if cloned in an external folder
add_subdirectory(external/common_util)
include_directories(
external/common_util/include
)
target_link_libraries(${PROJECT_NAME}
PUBLIC
common_util
)
Header | Quick Details | Link/Example Code |
---|---|---|
command_line_util.hpp | Read command line arguments from the main method. | here |
Logger.hpp | Singleton instance based logging library. It can handle logs on multithread as well. | here |
memory_map_util.hpp | map a file from disk to memory space. It's probably the fastest way to read files. | here |
string_format_util.hpp | accepts built-in data type in varadic template and returns a string. | here |
time_util.hpp | quick operation on time | here |