Is there a way to determine if a type is some sort of a container (probably with begin()
and end()
and forward iterators) in c++98
? I saw this but it uses decltype
from c++11
.
Also making specializations for every container (list, vector, etc) is not that appealing - perhaps something more general?
Probably a duplicate... I'd imagine this used to be a common question
EDIT:
I think this is almost what I need and I should remove tuple
stuff from it and replace the use of std::enable_if
with c++98 code. What should I do with this question now? keep it open? or? If someone does that work for me I would be happy to accept his answer :D