format support lib

This commit is contained in:
Erik Frojdh
2020-05-05 10:07:19 +02:00
parent e599bb7c24
commit ea4044e4b1
38 changed files with 775 additions and 854 deletions

5
slsSupportLib/include/container_utils.h Executable file → Normal file
View File

@ -39,7 +39,7 @@ template <typename Container> bool allEqual(const Container &c) {
return false;
}
/**
/**
* Compare elements but with specified tolerance, useful
* for floating point values.
*/
@ -129,7 +129,7 @@ minusOneIfDifferent(const std::vector<std::array<T, size>> &container) {
return arr;
}
/**
/**
* Return the first value if all values are equal
* otherwise return default_value. If no default
* value is supplied it will be default constructed
@ -146,7 +146,6 @@ Squash(const Container &c, typename Container::value_type default_value = {}) {
return default_value;
}
} // namespace sls
#endif // CONTAINER_UTILS_H