(C++) Opaque pointer
February 24, 2017 · View on GitHub
(C++) Opaque pointer
In general, 'Opaque' denotes the following [1]:
- Not allowing light to pass through; not transparent
- (of a statement,piece of writing,etc) not clear, difficult to understand
In C++, an opaque pointer is a pointer to a declared, but undefined class [2].
Opaque pointers are used in, among others, the pimpl idiom.
One of the advantages of using opaque pointers is an increase in compile speed.
References
- Oxford Advanced Learner's dictionary. ISBN:0-19-431422-7.
- Herb Sutter. Exceptional C++. ISBN: 0-201-61562-2. Item 27