deque::operator[]
Visual Studio 2005
Returns a reference to the deque element at a specified position.
reference operator[]( size_type _Pos ); const_reference operator[]( size_type _Pos ) const;
Parameters
- _Pos
-
The position of the deque element to be referenced.
If the return value of operator[] is assigned to a const_reference, the deque object cannot be modified. If the return value of operator[] is assigned to a reference, the deque object can be modified.
When compiling with _SECURE_SCL 1, a runtime error will occur if you attempt to access an element outside the bounds of the deque. See Checked Iterators for more information.
Reference
deque Classdeque::operator[] and deque::at
Standard Template Library