inc.hpp 816 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef INC_HPP
  2. #define INC_HPP
  3. //global includes for easier life
  4. #include <iostream>
  5. #include <vector>
  6. #include <fstream>
  7. #include <algorithm>
  8. #include <sstream>
  9. #if __has_include(<experimental/filesystem>)
  10. #include <experimental/filesystem>
  11. namespace fs = std::experimental::filesystem;
  12. #elif __has_include(<filesystem>)
  13. #include <filesystem>
  14. namespace fs = std::filesystem;
  15. #else
  16. #error "no filesystem support"
  17. #endif
  18. #if __has_include(<string_view>) && __cplusplus >= 201703L
  19. #include <string_view>
  20. #else
  21. #include "nonstd/string_view.hpp"
  22. #endif
  23. #if __has_include(<thread>)
  24. #ifdef __WIN32
  25. #include "nonstd/mingw_threads.hpp"
  26. #else
  27. #include <thread>
  28. #endif // OS Check
  29. #else
  30. #error "no threading support"
  31. #endif
  32. using std::string;
  33. using std::string_view;
  34. using std::vector;
  35. #endif