C member function to lambda4/3/2023 Storing Function PointersĬ++11 provides a std::function type. The ETL provides a vector type which uses static memory allocation. If dynamic memory allocation isn’t available for your system, take a look at the Embedded Template Library ( ETL). With std::vector, you can simply use one function to push the callback onto the list: std::vector callbacks_ What’s the simplest way to maintain a list of callbacks? Manage it with std::vector!
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |