mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-13 12:52:14 +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 path=/trunk/boost/boost/numeric/ublas/; revision=23989
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user