المتغيرات
فضاءات التسمية
أفعال

std::{{{1}}}::data

من cppreference.com
T* data();
قالب:mark since none
const T* data() const;
قالب:mark since none

Returns pointer to the underlying array serving as element storage. The pointer is such that range ‎[data(); data() + size())‎ is always a valid range, even if the container is empty.

محتويات

[تعديل] Parameters

(none)

[تعديل] Return value

Pointer to the underlying element storage. For non-empty containers, returns &front()

[تعديل] Complexity

Constant.

[تعديل] Exceptions

noexcept specification:  
noexcept
  (since C++11)

[تعديل] See also

قالب:dsc mem funقالب:dsc mem fun