mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-15 06:37:13 +02:00
Update Vector.hpp
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user