I want to share my recent "discovery" that was very shocking to me. Reading comments to a slashdot story about the C++0x standard I read something very interesting: std::list::size()
has O(N) complexity in the gcc compiler.
↧
Complexity of std::list::size() is... O(N)
↧