Hi, in my first version of the example i avoided the use of the uniform initialization of the vector, since it is a c++11 feature.
What's the policy for the wiki? Should c++11 features be used in the examples without any further notice? Should such examples be marked?
--Michel 06:47, 8 September 2011 (PDT)
- I've asked a similar question earlier, and the answer was any feature in C++11 can be used. --Cubbi 08:06, 8 September 2011 (PDT)
I noticed that, in libc++, std::advance only has one template argument (InputIt). The correct Distance type is determined using std::iterator_traits<InputIt>::difference_type. Is this part of the real c++11 standard? I would assume so, but I don't have access to the actual document, so I don't know for sure. If it is, I can go ahead and update the page.
126.96.36.199 15:50, 21 October 2013 (PDT)