[cfe-dev] libc++ operator==(vector,vector)
Shriramana Sharma
samjnaa at gmail.com
Sat Jun 29 19:18:48 PDT 2013
Comparing libc++'s operator==(vector,vector) from latest SVN with the
libstdc++ implementation (v4.8.1), I find that libc++ creates a
separate variable for x.size() and then compares with y.size() whereas
libstdc++ directly compares x.size() with y.size(). Is there any
(optimization) reason that libc++ creates this extra variable?
Thanks.
--
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा
More information about the cfe-dev
mailing list