Home | Libraries | People | FAQ | More |
boost::get — Extracts the Ith element from the array.
// In header: <boost/array.hpp> template<size_t Idx, typename T, size_t N> T & get(boost::array< T, N > & arr);
This function wxtracts the Idx -th element element from the array.
Unlike at and operator[], the condition that Idx is in the range [0,N) is enforced at compile-time.
Complexity.
Constant
Preconditions.
Idx < size()
See Also:
at, operator[]
Parameters: |
|
||||||
Template Parameters: |
|
||||||
Returns: |
A reference to the Ith element of arr |