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

  1. containers
  2. iterators
  3. functors
  4. algorithms
  5. 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.

see algorithms library


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -