Suppose we have an array named datasize 5. If we pass this array as an argument to a function std::end, for example
data
5
std::end
int *ptr = std::end(data);
It will return a pointer pointing to the memory location for the last element in the array.
Question
What is the point of pointing to a pointer to a memory cell for the last element in an array? Why not just point to the last element of the array?
To specify an "empty" container / sequence of one with elements in it.
, , , "".
A NULL , , NULL . . , " " ( pre ++ 98 )?
NULL
/ , , operator <, . ( ), == !=, ( ); " " .
operator <
==
!=
"" ; STL. ++.
, , STL.
; , , , , , , /.
.
Source: https://habr.com/ru/post/1014718/More articles:Wildcard or asterisk (*) against es6 name or custom import javascript - javascriptInability to understand Agda Coinduction - agdaHow to exit an expired session in Laravel 5.x? - securityCreation of Delphi IoC. How to disable Delphi linker from deleting unused classes - linkerNPM does not update readme - node.jsOverlapping Multiple IntervalBarRenderer - jfreechartBinding external variables in R - functionF # WPF MVVM can I do this without changing view model variables? - f #How to get custom response header in angular 2? - httpPandas: sum multiple columns into one column - pythonAll Articles