STL sort throw exception?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello everyone,


In Bjarne's book, it is mentioned that sort of STL may throw exception, like sorting elements in a vector.

In what situation will sort throw exception? I can not find a case.


thanks in advance,
George

EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
.



Relevant Pages

  • Re: STL sort throw exception?
    ... it is mentioned that sort of STL may throw ... exception, like sorting elements in a vector. ...
    (microsoft.public.vc.language)
  • Re: Why are Boost thread mutexes so slow compared to Pthreads?
    ... Most systems provide some sort of signal that ... to understand the problems associated with exception ... It's also becoming obvious that as per-thread throughput reaches ... threading and multiple tasks to achieve high performance and ...
    (comp.programming.threads)
  • Re: Handling invalid objects
    ... If Java did it wrong, let's do it right in Ada. ... there is a cascading effect when someone on one end of the chain adds a new exception type. ... Above, the call chain is myFun->sort->myComparator, but the error handling and reporting is the business which is agreed between myFun and myComparator only. ... The sort algorithm was written long before myFun and myComparator and it does not care what it sorts and for whom. ...
    (comp.lang.ada)
  • Re: Debugging an exception log
    ... on some machines the exception never occurs ... You make it sound like it could be some sort of overflow or wraparound ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [PATCH 1/8] lib/sort: Heapsort implementation of sort()
    ... >> This patch adds a generic array sorting library routine. ... Sort isn't inlined, ... - * stack may be more than 2GB away from the exception-table). ... * Sort the exception table. ...
    (Linux-Kernel)