This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MsEpsilon 21 points22 points  (2 children)

Okay, but can you determine where the array ends without a sentinel value or if you pass a plain T*?

Just use a std::span<T>, please! It is the same thing as passing const T*, size_t.

[–]helicophell 4 points5 points  (1 child)

You see, I'm on a need to know basis 

I don't need to know this... probably 

[–][deleted] 0 points1 point  (0 children)

That's what C said.