Defined in header <iterator> | ||||
---|---|---|---|---|
Defined in header <array> | ||||
Defined in header <deque> | ||||
Defined in header <forward_list> | ||||
Defined in header <list> | ||||
Defined in header <map> | ||||
Defined in header <regex> | ||||
Defined in header <set> | ||||
Defined in header <string> | ||||
Defined in header <unordered_map> | ||||
Defined in header <unordered_set> | ||||
Defined in header <vector> | ||||
| (1) | (since C++17) | ||
| (2) | (since C++17) | ||
| (3) | (since C++17) | ||
| (4) | (since C++17) |
Returns a pointer to the block of memory containing the elements of the container.
1,2) returns
c.data()
3) returns
array
4) returns
il.begin()
Parameters
c | - | a container with a data() method |
array | - | an array of arbitrary type |
il | - | an initializer list |
Return value
A pointer to the block of memory containing the elements of the container.
Exceptions
3,4)
noexcept
specification: noexcept
Possible implementation
First version | ||
---|---|---|
| ||
Second version | ||
| ||
Third version | ||
| ||
Fourth version | ||
|
Please login to continue.