What is the size of a std::function?
Summary The size of a std::function in C++ is not fixed and can vary depending on the type of callable object it stores. According to the C++ reference, the stored callable object is called the target. The size of std::function can be broken down into several components, including: 8 bytes for a function pointer 8 … Read more