Replace #define ... with pragma once
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#ifndef LOCALE_H
|
||||
#define LOCALE_H
|
||||
#pragma once
|
||||
|
||||
#include <locale>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
@@ -19,4 +19,3 @@ namespace platform {
|
||||
}
|
||||
};
|
||||
}
|
||||
#endif
|
@@ -1,5 +1,5 @@
|
||||
#ifndef COLORS_H
|
||||
#define COLORS_H
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
class Colors {
|
||||
public:
|
||||
@@ -13,4 +13,3 @@ public:
|
||||
static std::string IBLUE() { return "\033[0;94m"; }
|
||||
static std::string RESET() { return "\033[0m"; }
|
||||
};
|
||||
#endif // COLORS_H
|
@@ -1,5 +1,5 @@
|
||||
#ifndef DATASET_H
|
||||
#define DATASET_H
|
||||
#pragma once
|
||||
|
||||
#include <torch/torch.h>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
@@ -75,4 +75,3 @@ namespace platform {
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
@@ -1,5 +1,5 @@
|
||||
#ifndef DATASETS_H
|
||||
#define DATASETS_H
|
||||
#pragma once
|
||||
|
||||
#include "Dataset.h"
|
||||
namespace platform {
|
||||
class Datasets {
|
||||
@@ -27,5 +27,3 @@ namespace platform {
|
||||
std::string toString() const;
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
@@ -1,5 +1,5 @@
|
||||
#ifndef DOTENV_H
|
||||
#define DOTENV_H
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include <fstream>
|
||||
@@ -52,4 +52,3 @@ namespace platform {
|
||||
}
|
||||
};
|
||||
}
|
||||
#endif
|
@@ -1,5 +1,5 @@
|
||||
#ifndef PATHS_H
|
||||
#define PATHS_H
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <filesystem>
|
||||
#include "DotEnv.h"
|
||||
@@ -36,4 +36,3 @@ namespace platform {
|
||||
}
|
||||
};
|
||||
}
|
||||
#endif
|
@@ -1,5 +1,5 @@
|
||||
#ifndef SYMBOLS_H
|
||||
#define SYMBOLS_H
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
namespace platform {
|
||||
class Symbols {
|
||||
@@ -15,4 +15,3 @@ namespace platform {
|
||||
inline static const std::string notebook{ "\U0001F5C8" };
|
||||
};
|
||||
}
|
||||
#endif // !SYMBOLS_H
|
@@ -1,5 +1,5 @@
|
||||
#ifndef TIMER_H
|
||||
#define TIMER_H
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
@@ -40,4 +40,3 @@ namespace platform {
|
||||
}
|
||||
};
|
||||
} /* namespace platform */
|
||||
#endif /* TIMER_H */
|
@@ -1,5 +1,5 @@
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
#pragma once
|
||||
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -27,4 +27,3 @@ namespace platform {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user