Naming of objects following STL-style: iterator, const_iterator, etc...

9 views
Skip to first unread message

Alexander Alekseev

unread,
Nov 16, 2020, 7:28:36 PM11/16/20
to c...@chromium.org
I was expecting that there is an exception for STL-like objects with "standard" names:

class iterator{}
class const_iterator{}
begin()
end()

but apparently there is none. According to the style guide these must be "Iterator", "ConstIterator", "Begin()", ... 

Could we allow using STL-style iterator names in custom containers?

Victor Vasiliev

unread,
Nov 16, 2020, 7:32:18 PM11/16/20
to Alexander Alekseev, cxx

--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAP6mfn8ara81GPmctRCJs2LAhCoU3h%2B%3DqjBhdTOZ8nrFqOQhjg%40mail.gmail.com.

Alexander Alekseev

unread,
Nov 16, 2020, 7:37:25 PM11/16/20
to Victor Vasiliev, Alexander Alekseev, cxx
Wow, thank you very much!
Reply all
Reply to author
Forward
0 new messages