1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-31 09:57:14 +01:00

Fix return value.

This commit is contained in:
Sandu Liviu Catalin 2021-02-03 23:08:18 +02:00
parent c8e5012642
commit 6fcdfa6ed2

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());
} }
/* -------------------------------------------------------------------------------------------- /* --------------------------------------------------------------------------------------------