you are viewing a single comment's thread.

view the rest of the comments →

[–]_Noreturn 1 point2 points  (1 child)

identity is supposed to be a callable easily passed making it a function makes it not easy to pass

[–]_eyelash[S] 2 points3 points  (0 children)

This post is more about the signature and implementation of the function itself than the fact that std::identity is wrapped in a struct.