Template Function otyca::filter_greater
Function Documentation
-
template<typename T>
std::vector<T> otyca::filter_greater(const std::vector<T> &input, const T &threshold) Filters elements in the input vector that are greater than a threshold.
This function takes an input vector and a threshold value, and returns a new vector containing only the elements that are greater than the specified threshold.
- Template Parameters:
T – The type of the elements in the input vector and threshold.
- Parameters:
input – The input vector containing the elements to be filtered.
threshold – The threshold value used for filtering the elements.
- Returns:
A vector containing the elements from the input vector that are greater than the threshold.