C++ Logo

std-proposals

Advanced search

Re: End of the east const vs. const west war - auto type deduction for const.

From: Lyberta <lyberta_at_[hidden]>
Date: Fri, 23 Aug 2019 00:51:00 +0000
>> I have a proposal referring to endless war between C++ programmers: east
>> const vs const west.
template <typename T>
using ptr_to = T*;

template <typename T>
using const_ptr_to = T* const;

template <typename T>
using ref_to = T&;


Received on 2019-08-22 19:53:15