const
auto
, , int * const
, auto
int *
. , , , auto const
const auto
, , , int const
const int
.
:
template<typename T>
using pointer = T*;
pointer<int> ptr_to_int = new int;
const pointer<int> const_ptr_to_int = new int;
pointer<const int> ptr_to_const_int = new int;
const pointer<const int> const_ptr_to_const_int = new int;
pointer<int> const const_ptr_to_int2 = new int;
pointer<int const> ptr_to_const_int2 = new int;
pointer<const int> const const_ptr_to_const_int2 = new int;
pointer<int const> const const_ptr_to_const_int3 = new int;
, - , , ++. , , const
, . , "--" , : (, , auto
), .
, , , , using
typedef
pointer<T>
, , , , , , const pointer<int>
, , int *const
. , :
int * a_ptr, b_ptr, c_ptr;
pointer<int> a_ptr, b_ptr, c_ptr;
auto
, , , ( ), const
, , .