Enhancements

Add loading external custom configuration from URL.
Optimize codes.
This commit is contained in:
Tindy X committed 2020-01-01 14:30:41 +08:00
1 parent 09c14e0222
commit 9196387fe6
2 files changed
+79 -30

No files matched your search

+6
View File
@@ -67,6 +67,12 @@ static inline bool strFind(std::string str, std::string target)
return str.find(target) != str.npos;
}
template <typename T> static inline void eraseElements(std::vector<T> &target)
{
target.clear();
target.shrink_to_fit();
}
template <typename T> static inline void eraseElements(T &target)
{
T().swap(target);