1
0
Fork 0
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:
reuk 2021-12-08 19:29:25 +00:00
parent 43280c3f7f
commit ca5c9fdae6
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
3 changed files with 996 additions and 655 deletions

View file

@ -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();