2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-19 14:52:17 +00:00

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 r23989]
This commit is contained in:
Michael Stevens
2004-07-23 14:02:25 +00:00
parent a1c9695f38
commit b596e64ad2

View File

@@ -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):