| 34 | // probably itself a sparse sample. |
| 35 | template <typename kernel_type, typename T, typename alloc> |
| 36 | inline typename disable_if<is_pair<T>,const T&>::type access ( const std::vector<T,alloc>& m, long i) |
| 37 | { |
| 38 | return m[i]; |
| 39 | } |
| 40 | |
| 41 | // Only use this function if T isn't a std::pair because in that case the entire vector is |
| 42 | // probably a sparse sample. |