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

std::{{{1}}}::at

من cppreference.com
reference       at( size_type pos );
قالب:mark since none
const_reference at( size_type pos ) const;

Returns a reference to the element at specified location ‎pos‎, with bounds checking.

If ‎pos‎ not within the range of the container, an exception of type std::out_of_range‎ is thrown.

محتويات

[تعديل] Parameters

pos - position of the element to return

[تعديل] Return value

Reference to the requested element.

[تعديل] Exceptions

std::out_of_range‎ if !(pos < size()).

[تعديل] Complexity

Constant.

[تعديل] See also

قالب:dsc mem fun