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:
parent
c8e5012642
commit
6fcdfa6ed2
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user