commit | 9bf9b2a29e7da59f45b86a800665ad72dafe3f72 | [log] [tgz] |
---|---|---|
author | Nicolas Catania <[email protected]> | Sun Jan 24 15:01:04 2010 -0800 |
committer | Nicolas Catania <[email protected]> | Tue Jan 26 13:15:08 2010 -0800 |
tree | 73e625108d06d21db5fb3f7c409f9860f97f14b5 | |
parent | fe47cee745a2b91cd9a2b98f7a82c9ad9fec726f [diff] |
Added iterator based vector constructor. The new range based constructors degrades to one reserve and one memmove call for pod types referenced using random access iterators. There is an extra step to disambiguate between range and repeat initializers. Basically for some type combination, the range form can be called when the repeat form was the one targetted. We check if the type is an integer to find out which one was called.