[mdspan.accessor.aligned.overview] Remove std:: in example#8264
Conversation
|
I tend to agree. @JeffGarland, any library thoughts? |
I think the opposite is true. The very first code example in the library clause ([alg.func.obj]) uses a qualified name. |
|
See also [ptr.launder], [concept.swappable], [out.ptr.t], ... We're not consistent though, and this one isn't a complete code example (it has no headers included for a start). So I guess this is fine, it reduces a bit of visual noise. |
|
Hm, I see, we do seem to use both styles. That makes this change less compelling. @hewillk Could you at least survey the rest of the mdspan material to see what other examples are doing? |
Most of the other examples do not use spelled namespaces, for example: https://eel.is/c++draft/views#mdspan.sub.sub-7 |
They all have include headers, which means that namespaces are required for the entire code to be compiled correctly. |
|
Great, thank you! |
We usually don't explicitly spell
std::in examples unless it's really intentional.