one line assert to test if STL container is sorted

Posted by Ghostrider on Stack Overflow See other posts from Stack Overflow or by Ghostrider
Published on 2010-06-02T04:54:00Z Indexed on 2010/06/02 5:03 UTC
Read the original article Hit count: 333

Filed under:
|
|
|

Is there a way to write a one line condition that would return true if STL container is sorted?

I intend to use it in an assert

© Stack Overflow or respective owner

Related posts about c++

Related posts about arrays