From 021bb189414a6750dbbe85c434325a15c8f002d5 Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Fri, 23 Jul 2004 14:02:25 +0000 Subject: [PATCH] Dropped the fat interface constructors in map_array and set_array to match std::map/set The implementation was no more efficient then reserve svn path=/trunk/boost/boost/numeric/ublas/; revision=23989 --- .../boost/numeric/ublas/storage_sparse.hpp | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/include/boost/numeric/ublas/storage_sparse.hpp b/include/boost/numeric/ublas/storage_sparse.hpp index 349646e3..8e69e10d 100644 --- a/include/boost/numeric/ublas/storage_sparse.hpp +++ b/include/boost/numeric/ublas/storage_sparse.hpp @@ -286,20 +286,6 @@ namespace boost { namespace numeric { namespace ublas { BOOST_UBLAS_INLINE map_array (): capacity_ (0), data_ (new value_type [0]), size_ (0) { - std::fill (data_, data_ + size_, value_type ()); - } - BOOST_UBLAS_INLINE - map_array (no_init): - capacity_ (0), data_ (new value_type [0]), size_ (0) { - } - explicit BOOST_UBLAS_INLINE - map_array (size_type size): - capacity_ (size), data_ (new value_type [size]), size_ (0) { - std::fill (data_, data_ + size_, value_type ()); - } - explicit BOOST_UBLAS_INLINE - map_array (size_type size, no_init): - capacity_ (size), data_ (new value_type [size]), size_ (0) { } BOOST_UBLAS_INLINE map_array (const map_array &a): @@ -625,20 +611,6 @@ namespace boost { namespace numeric { namespace ublas { BOOST_UBLAS_INLINE set_array (): capacity_ (0), data_ (new value_type [0]), size_ (0) { - std::fill (data_, data_ + size_, value_type ()); - } - BOOST_UBLAS_INLINE - set_array (no_init): - capacity_ (0), data_ (new value_type [0]), size_ (0) { - } - explicit BOOST_UBLAS_INLINE - set_array (size_type size): - capacity_ (size), data_ (new value_type [size]), size_ (0) { - std::fill (data_, data_ + size_, value_type ()); - } - explicit BOOST_UBLAS_INLINE - set_array (size_type size, no_init): - capacity_ (size), data_ (new value_type [size]), size_ (0) { } BOOST_UBLAS_INLINE set_array (const set_array &a):