const ++ 2003, ++ 2011 (. 7.1.6.1 [decl.type.cv], 1: " cv- " ).
static const TYPE const name[5];
TYPE. , , ++ 2011, const .
const TYPE
TYPE const
: TYPE . const , , , const (, , ).
Using pointers seems to become different. There are two types of types: a type indicating a type and a pointer. Each of them can be done constseparately:
TYPE const* ptr1(0);
TYPE* const ptr2(0);
TYPE const* const ptr3(0);
The best way to find out what has been done constis to read a type declaration from right to left. Of course, this assumes that qualifiers constare placed in the right place. You can replace constwith volatileor const volatilein the discussion above and use the same reasoning.
source
share