StormByte C++ Library 0.0.9999
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
Loading...
Searching...
No Matches
system.hxx
1#pragma once
2
3#include <StormByte/visibility.h>
4
5#include <chrono>
6#include <filesystem>
7#include <string>
8
16namespace StormByte::System {
22 STORMBYTE_PUBLIC std::filesystem::path TempFileName(const std::string& prefix = "TMP");
23
28 STORMBYTE_PUBLIC std::filesystem::path CurrentPath();
29
36 template <typename Rep, typename Period>
37 STORMBYTE_PUBLIC void Sleep(const std::chrono::duration<Rep, Period>& duration);
38}
std::conditional_t< is_reference< T >::value, std::expected< std::reference_wrapper< std::remove_reference_t< T > >, std::shared_ptr< E > >, std::expected< T, std::shared_ptr< E > > > Expected
Expected type with support for reference types.
Definition expected.hxx:32