mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-04-17 01:37:12 +02:00
Update Vector.hpp
This commit is contained in:
parent
6fcdfa6ed2
commit
35ff0e6eea
@ -673,6 +673,10 @@ template < class T > struct SqVector
|
|||||||
bool IsSorted()
|
bool IsSorted()
|
||||||
{
|
{
|
||||||
Validate();
|
Validate();
|
||||||
|
if (std::is_same< T, bool >::value)
|
||||||
|
{
|
||||||
|
STHROWF("This functionality is not implemented for booleans");
|
||||||
|
}
|
||||||
return std::is_sorted(mC->begin(), mC->end());
|
return std::is_sorted(mC->begin(), mC->end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user