xieite ::rm_ptr <>
Defined in header <xieite/trait/rm_ptr.hpp>
Removes pointiness from a type, up to a specified depth.
Declaration
template <typename T ,std ::size_t n =1 >using rm_ptr =/* ??? */ ;
Example
[View in Compiler Explorer]static_assert (std ::same_as <xieite ::rm_ptr <int* >,int >);static_assert (std ::same_as <xieite ::rm_ptr <int*** >,int** >);static_assert (std ::same_as <xieite ::rm_ptr <int*** ,5 >,int >);