Namespaces
Variants
Actions

Talk:cpp/memory/pointer traits

From cppreference.com

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)

We have "2) A specialization is provided for pointer types, T*..." right after the description of primary template. Not sure what you want us to do here... T. Canens (talk) 13:24, 17 January 2017 (PST)