WIP: Added page showing list of functions.

Only list is shown, still working on details.
This commit is contained in:
eelke 2018-11-25 09:06:01 +01:00
parent 7db859737a
commit 840af1e0a9
19 changed files with 635 additions and 92 deletions

View file

@ -58,7 +58,8 @@ HEADERS += PasswordManager.h \
SqlAstSelectList.h \
SqlAstSelectListEntry.h \
SqlAstSelect.h \
SqlAstExpression.h
SqlAstExpression.h \
std_utils.h
unix {
target.path = /usr/lib

14
core/std_utils.h Normal file
View file

@ -0,0 +1,14 @@
#ifndef STD_UTILS_H
#define STD_UTILS_H
#include <vector>
template <typename T>
const T& value_or(const std::vector<T> &vec, const size_t index, const T &def)
{
if (index < 0 || index >= vec.size())
return def;
return vec[index];
}
#endif // STD_UTILS_H