1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Update Vector.hpp

This commit is contained in:
Sandu Liviu Catalin 2021-02-03 23:11:29 +02:00
parent 6fcdfa6ed2
commit 35ff0e6eea

View File

@ -673,6 +673,10 @@ template < class T > struct SqVector
bool IsSorted()
{
Validate();
if (std::is_same< T, bool >::value)
{
STHROWF("This functionality is not implemented for booleans");
}
return std::is_sorted(mC->begin(), mC->end());
}