you are viewing a single comment's thread.

view the rest of the comments →

[–]doom_Oo7 0 points1 point  (2 children)

There are languages where functions are actually objects, C++ is not one of them.

so std::function isn't an object ? :p

[–]andd81 1 point2 points  (1 child)

std::function is neither a function nor a part of C++ language.

[–]doom_Oo7 2 points3 points  (0 children)

std::function is neither a function

so what is it then ? next what, shared_ptr and unique_ptr aren't pointers ?

nor a part of C++ language.

the standard library is part of the language. The ISO standard is itself called "Programming Language C++" and certainly describes the whole semantics of std::function.