+1 vote
in D Programming by
What Is Head Const?

1 Answer

0 votes
by
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.

Related questions

0 votes
asked Mar 5, 2021 in D Programming by SakshiSharma
0 votes
asked Mar 5, 2021 in D Programming by SakshiSharma
...