Skip to Content
Programming: Principles and Practice Using C++, 2nd Edition
book

Programming: Principles and Practice Using C++, 2nd Edition

by Bjarne Stroustrup
May 2014
Beginner
1312 pages
38h 36m
English
Addison-Wesley Professional
Content preview from Programming: Principles and Practice Using C++, 2nd Edition

E. GUI Implementation

“When you finally understandwhat you are doing,things will go right.”

—Bill Fairbank

This appendix presents implementation details of callbacks, Window, Widget, and Vector_ref. In Chapter 16, we couldn’t assume the knowledge of pointers and casts needed for a more complete explanation, so we banished that explanation to this appendix.

E.1 Callback implementation

We implemented callbacks like this:

void Simple_window::cb_next(Address, Address addr)            // call Simple_window::next() for the window located at addr {            reference_to<Simple_window>(addr).next(); ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming: Principles and Practice Using C++, 3rd Edition

Programming: Principles and Practice Using C++, 3rd Edition

Bjarne Stroustrup
C++ How to Program, 10/e

C++ How to Program, 10/e

Paul Deitel, Harvey Deitel

Publisher Resources

ISBN: 9780133796759Purchase book