Skip to main content
10 events
when toggle format what by license comment
Oct 31, 2023 at 15:12 history edited Nimantha CC BY-SA 4.0
Removed commentary
Jul 21, 2021 at 16:21 comment added hsandt The two collaboration.cmc.ec.gc.ca links are dead ("The requested URL was not found on this server."), but the DrDobbs link is working now! It looks complementary though, as it mentions the choose template but not how to build it...
Oct 29, 2020 at 11:11 comment added EML All your links are now dead, unfortunately. The Dr. Dobbs site does have some Jan '01 articles, but not this one, and the login is now broken anyway.
Aug 26, 2020 at 14:44 comment added BAKE ZQ Funny, the last link is down.
Oct 8, 2019 at 23:44 comment added Adrian McCarthy The original answer was also 2010, but it was link-only and the link eventually rotted. This recreated answer was 2016, but retains the context of the original question. It's true that std::conditional was a thing by 2016, but it wasn't yet implemented in all of the major compilers at that point.
Oct 6, 2019 at 17:15 comment added Adrian McCarthy @L.F.: The question was asked in 2010, before std::conditional_t was a thing.
Sep 5, 2017 at 20:15 comment added Adrian McCarthy @user8385554: I think the idea is that Matt Austern's slist container would have typedefs for iterator and const_iterator to make the iterators available as though they were member types.
Aug 25, 2017 at 4:14 comment added Leedehai But in STL, iterator classes are defined as a member classes of containers, so std::vector<int>::iterator is valid. Matt Austern's code defines the slist_iterator class to be an outside class of slist.
Dec 23, 2016 at 18:26 vote accept Adrian McCarthy
Dec 23, 2016 at 18:25 history answered Adrian McCarthy CC BY-SA 3.0