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. |
Contact Us | Site Map | Trademarks | Privacy | Using this site means you accept its Terms of Use |
Copyright © 2009 - 2014 Silicon Graphics International. All rights reserved. |