mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-11-06 11:57:09 +01:00
Update Vector.hpp
This commit is contained in:
1 parent
6fcdfa6ed2
commit
35ff0e6eea
1 file changed
+4
@@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user