to be constant [1]. Therefore, I think it would be reasonable if inIn C++11, however, the complexity of std::list::size() is guaranteed
C++11, Boost.Range provided a specialized version of size() for
std::list that forwarded to std::list::size(). This has not been
implemented yet. If you would like to see it implemented, please file
a Trac ticket. If no one objects to this addition, I will implement
it when I get a chance.
Regards,
Nate