OptimisationProblem/Utils.h

14 lines
190 B
C
Raw Normal View History

2023-07-17 00:19:10 +02:00
#pragma once
#include <sys/stat.h>
class Utils
{
public:
static inline bool exists(const char* path)
{
struct stat buffer;
return (stat(path, &buffer) == 0);
}
};