diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-03-01 20:53:04 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-03-10 23:17:55 (GMT) |
commit | 7cbafa8c65751d2eda7a17753c384da1fc91f695 (patch) | |
tree | 0abcdb17426a7d01e0d806ad2bdb608a05df1a11 /Source/cmExternalMakefileProjectGenerator.cxx | |
parent | 95dd238f5cde3aef28f09a2367ac7467d064ea10 (diff) | |
download | CMake-7cbafa8c65751d2eda7a17753c384da1fc91f695.zip CMake-7cbafa8c65751d2eda7a17753c384da1fc91f695.tar.gz CMake-7cbafa8c65751d2eda7a17753c384da1fc91f695.tar.bz2 |
cmRemoveDuplicates: Store unique iterators instead of values.
There is no need to copy all of the values in the container in
order to determine uniqueness. Iterators can be stored instead
and can be used with standard algorithms with custom comparison
methods.
This also means that we use less space in case the value_type size
is greater than sizeof(iterator). That is common for std::string
which may require up to 32 bytes (libstdc++ 5.0 and MSVC at least).
With libstdc++ 4.9 and older, std::string is 8 bytes, so we likely
don't gain anything here.
Inspired-by: Daniel Pfeifer <daniel@pfeifer-mail.de>
Diffstat (limited to 'Source/cmExternalMakefileProjectGenerator.cxx')
0 files changed, 0 insertions, 0 deletions