2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-23 16:12:09 +00:00

add map_capacity

This commit is contained in:
Michael Stevens
2004-09-20 18:54:06 +00:00
parent 026eefc428
commit e69208c61b

View File

@@ -555,6 +555,16 @@ namespace boost { namespace numeric { namespace ublas {
m.reserve (capacity);
}
template<class M>
BOOST_UBLAS_INLINE
typename M::size_type map_capacity (M &m) {
return m.size ();
}
template<class I, class T, class ALLOC>
BOOST_UBLAS_INLINE
typename map_array<I, T, ALLOC>::size_type map_capacity (map_array<I, T, ALLOC> &m) {
m.capacity ();
}
}
// This specialization is missing in Dinkumware's STL?!