OptimisationProblem/Utils.h
2023-07-17 01:19:10 +03:00

14 lines
190 B
C++

#pragma once
#include <sys/stat.h>
class Utils
{
public:
static inline bool exists(const char* path)
{
struct stat buffer;
return (stat(path, &buffer) == 0);
}
};