Efficient and Reliable Wrapping of C APIs Using Modern C++

By Vladimir Vishnevskii

Safe and efficient usage of C based frameworks from C++ code may require introduction of an intermediate layer to employ compile time safety mechanisms and adapt C procedural API for C++ features and control structures. The presentation, using a case study approach, will cover topics such as adapter interface design according to modern C++ best practices, overhead avoidance techniques, application of compile time computation and compile time enforced safety. The talk will inspect and highlight C++ features and standard utilities (up to C++23 standard) that can be used to efficiently and reliably wrap C APIs in modern C++ code. Performance implications of various design decisions will be analyzed and trade-offs between usability and efficiency will be discussed. Substantial part of the talk will be dedicated to design and implementation techniques enabling comprehensive unit testing of the wrapper code.





Your Privacy

By clicking "Accept Non-Essential Cookies" you agree ACCU can store non-essential cookies on your device and disclose information in accordance with our Privacy Policy and Cookie Policy.

Current Setting: Non-Essential Cookies REJECTED


By clicking "Include Third Party Content" you agree ACCU can forward your IP address to third-party sites (such as YouTube) to enhance the information presented on this site, and that third-party sites may store cookies on your device.

Current Setting: Third Party Content EXCLUDED



Settings can be changed at any time from the Cookie Policy page.