Template Function otyca::filter_less_or_equal
Function Documentation
-
template<typename T>
std::vector<T> otyca::filter_less_or_equal(const std::vector<T> &input, const T &threshold) Filters elements in the input vector that are less than or equal to a threshold.
This function takes an input vector and a threshold value, and returns a new vector containing only the elements that are less than or equal to 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 less than or equal to the threshold.