std::function、bind 与 invoke 的边界 | STL

本章覆盖:`std::function`;type erasure;callable storage;possible allocation;`std::bind`;placeholders;lambda 通常更清晰;`std::invoke`;member pointer invocation;generic callback;性能敏感路径不机械使用 std::function。

本章知识点

  • std::function
  • type erasure
  • callable storage
  • possible allocation
  • std::bind
  • placeholders
  • lambda 通常更清晰
  • std::invoke
  • member pointer invocation
  • generic callback
  • 性能敏感路径不机械使用 std::function