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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -