[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppVoidPtr
Avoid void* except in low-level code [1]
In Win32 API programming, handles are common of type void*.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppVoidPtr
(C++) void*
A pointer to a struct/class of type void. As void means 'empty', in practice this means that void* is a pointer to a class of undefined data type. In other words, it's just a memory address!Avoid void* except in low-level code [1]
In Win32 API programming, handles are common of type void*.
References
- 1) Bjarne Stroustrup. The C++ Programming Language (3rd edition).ISBN: 0-201-88954-4 Chapter 5.8.7: 'Avoid void* except in low-level code'.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
