| 1. |
What Is Head Const? |
|
Answer» Head const is where the const applies only to the component of the type adjacent to the const. For example: headconst(int**) p; would be READ as p being a: const POINTER to mutable pointer to mutable int. D does not have head const (the headconst is there just for illustrative PURPOSES), but C++ const is a head const system. Head const is where the const applies only to the component of the type adjacent to the const. For example: headconst(int**) p; would be read as p being a: const pointer to mutable pointer to mutable int. D does not have head const (the headconst is there just for illustrative purposes), but C++ const is a head const system. |
|