Category: containers | Component type: concept |
X | A type that is a model of Random Access Container |
a, b | Object of type X |
T | The value type of X |
Name | Expression | Type requirements | Return type |
---|---|---|---|
Element access | a[n] | n is convertible to size_type | reference if a is mutable, const_reference otherwise |
Name | Expression | Precondition | Semantics | Postcondition |
---|---|---|---|---|
Element access | a[n] | 0 <= n < a.size() | Returns the nth element from the beginning of the container. |
Element access | The element returned by a[n] is the same as the one obtained by incrementing a.begin() n times and then dereferencing the resulting iterator. |
privacy policy | | | contact us |
Copyright © 1993-2001 Silicon Graphics, Inc. All rights reserved. | | | Trademark Information |