mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 05:17:13 +02:00
format support lib
This commit is contained in:
5
slsSupportLib/include/container_utils.h
Executable file → Normal file
5
slsSupportLib/include/container_utils.h
Executable file → Normal 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
|
||||
|
Reference in New Issue
Block a user