c++ - Are stl algorithms classes with operator() or functions -
recently i've taken c++ quiz , here question it:
select concepts represented in stl templated classes
- containers
- iterators
- functors
- algorithms
- exceptions
obviously 1,2 , 3 templated classes, algorithms? never thought it, algorithms can templated functions, , can templated classes operator().
though, think not matter , rather silly question, i'm interested in answer, because have number of mistakes in quiz without knowing right , wrong.
tl;dr: are stl algorithms functions or classes operator()?
thank you.
they're function templates.
Comments
Post a Comment