Talk:cpp/iterator/iterator

Why is it deprecated? What's the recommended alternative? 194.74.130.171 00:25, 20 May 2021 (PDT)
 * std is just a class template that declares the template type arguments you give it as type aliases. Basically it's completely useless, as it serves to simply to obscure the purpose of those types when they could simply be provided explicitly by the custom iterator class instead (which is the alternative). Furthermore, from an object oriented perspective, I think it's non-sensical to use inheritance here; I don't think there's any use case for wanting to take a e.g. std as say a function parameter. --Ybab321 (talk) 04:48, 20 May 2021 (PDT)
 * Here's the example from the page without std


 * --Ybab321 (talk) 04:58, 20 May 2021 (PDT)