mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
FloatVectorOperations: Add overloads accepting size_t element counts
This commit is contained in:
parent
43280c3f7f
commit
ca5c9fdae6
3 changed files with 996 additions and 655 deletions
|
|
@ -270,7 +270,8 @@ public:
|
|||
}
|
||||
|
||||
/** Scans an array of values for its min and max, and returns these as a Range. */
|
||||
static Range findMinAndMax (const ValueType* values, int numValues) noexcept
|
||||
template <typename Integral, std::enable_if_t<std::is_integral<Integral>::value, int> = 0>
|
||||
static Range findMinAndMax (const ValueType* values, Integral numValues) noexcept
|
||||
{
|
||||
if (numValues <= 0)
|
||||
return Range();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue