std::span<T,Extent>:: data
From cppreference.com
C++
Containers library
Sequence | ||||
(C++11)
|
||||
(C++26)
|
||||
(C++11)
|
||||
Associative | ||||
Unordered associative | ||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
Adaptors | ||||
(C++23)
|
||||
(C++23)
|
||||
(C++23)
|
||||
(C++23)
|
||||
Views | ||||
(C++20)
|
||||
(C++23)
|
||||
Tables | ||||
Iterator invalidation | ||||
Member function table | ||||
Non-member function table |
std::span
Member functions | ||||
Element access | ||||
(C++26)
|
||||
span::data
|
||||
Iterators | ||||
(C++23)
|
||||
(C++23)
|
||||
(C++23)
|
||||
(C++23)
|
||||
Observers | ||||
Subviews | ||||
Non-member functions | ||||
Non-member constant | ||||
Deduction guides |
constexpr
pointer data
(
)
const
noexcept
;
|
(since C++20) | |
Returns a pointer to the beginning of the sequence.
Return value
A pointer to the beginning of the sequence.
Example
Run this code
Output:
ABCDEF BCDEF CDEF DEF EF F
See also
constructs a
span
(public member function) |
Retrieved from "
https://en.cppreference.com/mwiki/index.php?title=cpp/container/span/data&oldid=153248
"