Home | Libraries | People | FAQ | More |
boost::get — Extracts the Ith element from a constant array.
// In header: <boost/array.hpp> template<size_t Idx, typename T, size_t N> const T & get(const boost::array< T, N > & arr);
This function wxtracts the Idx -th element element from a constant 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 constant reference to the Ith element of arr |