Sign in
Microsoft.com
United States (English)
Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Italia (Italiano)Россия (Русский)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特别行政區 (中文)
 
 
Microsoft Developer Network
 
 
Home
 
 
Library
 
 
Learn
 
 
Downloads
 
 
Support
 
 
Community
 
 
Forums
 
 
 
Visual C++ Developer Center > Visual C++ Forums > Visual C++ Language > Time complexity of debug/checked iterators
Ask a questionAsk a question
Search Forums:
  • Search Visual C++ Language Forum Search Visual C++ Language Forum
  • Search All Visual C++ Forums Search All Visual C++ Forums
  • Search All MSDN Forums Search All MSDN Forums
 

AnswerTime complexity of debug/checked iterators

  • Sunday, June 18, 2006 8:24 PMYuval Ronen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    Hi.

    I've heard that the C++ iterators in Visual Studio 2005 (checked iterators and debug iterators), do not meet to time complexity (big-O) specifications required by the C++ standard. I tried to find some documentation about it, but found nothing. Is there some paper describing this nonconformance, or maybe I'm wrong and the iterators are fully confomant?

    Thanks,
    Yuval

    • ReplyReply
    • QuoteQuote
     

Answers

  • Monday, June 19, 2006 8:41 PMJonathan Caves - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Vote As Helpful
    0

    Hi: I passed your question on to Bill Plauger who is the author of the C++ Standard Library that ships with Visual C++. Here is his response.

    "MS tried pretty hard to ensure that checked iterators were reasonably

    fast and, more importantly, had proper time complexity. Debug iterators also

    meet time complexity requirements, but the algorithms that use them (in the

    container member functions and the headers <algorithm> and <numeric>) don't.

    It's a fine point, perhaps, but an important one."

     

    • ReplyReply
    • QuoteQuote
     

All Replies

  • Monday, June 19, 2006 10:15 PMYuval Ronen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    Thanks for the answer.

    When you say "MS tried pretty hard to ensure that checked iterators ... had proper time complexity", do you mean "tried and succeeded", or "tried and failed"? I couldn't quite figure it out from the answer...

    And I really think that adding a similar explanation to the relevant MSDN pages is a good idea...

    • ReplyReply
    • QuoteQuote
     
  • Tuesday, June 20, 2006 12:02 AMJonathan Caves - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    We mean "Tried and succeeded". Of course if you have examples of cases where this is not the case we'd love to hear about them.
    • ReplyReply
    • QuoteQuote
     
Need Help with Forums? (FAQ)
 
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement