What's the difference between typedef const struct *CGPath and typedef struct *CGPath?
Posted
by mystify
on Stack Overflow
See other posts from Stack Overflow
or by mystify
Published on 2010-06-01T18:13:40Z
Indexed on
2010/06/01
18:23 UTC
Read the original article
Hit count: 190
I've found this in the CGPath.h header file. I'm curious what this const thing does?
typedef struct CGPath *CGMutablePathRef;
typedef const struct CGPath *CGPathRef;
My guess: If I typedef something as const, it's constant so immutable and can't be changed in any way. Does that make sense?
© Stack Overflow or respective owner