Talk:cpp/memory/pointer traits
From cppreference.com
< Talk:cpp
I think there's room for clarification for the member types. Really, I find the Standard itself makes it clearer than here, even when I try to word it.
pointer and element_type are defined differently depending on the pointer_traits template parameter. And, the page only defines them for the template type Ptr case, not for the pointer type T*.
For example, element_type is defined for T* as T, whereas for Ptr it is typename Ptr::element_type or the T of Ptr<T, ...>, as the page already describes.
What do you think?
wilhelmtell (talk) 13:13, 17 January 2017 (PST)