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:
@@ -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?!
|
||||
|
||||
Reference in New Issue
Block a user