Fix return value.

This commit is contained in:
Sandu Liviu Catalin
2021-02-03 23:08:18 +02:00
parent c8e5012642
commit 6fcdfa6ed2
+2 -2
View File
@@ -670,10 +670,10 @@ template < class T > struct SqVector
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------
* Check if the elements from the container are sorted. * Check if the elements from the container are sorted.
*/ */
void IsSorted() bool IsSorted()
{ {
Validate(); Validate();
std::is_sorted(mC->begin(), mC->end()); return std::is_sorted(mC->begin(), mC->end());
} }
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------