mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-12 00:22:22 +00:00
Commented old code
svn path=/trunk/boost/boost/numeric/ublas/; revision=24462
This commit is contained in:
@@ -248,17 +248,17 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
void insert (size_type i, const_reference t) {
|
||||
// FIXME: only works for EqualityComparable value types.
|
||||
// BOOST_UBLAS_CHECK (data () [i] == value_type (), bad_index ());
|
||||
// data ().insert (data ().begin () + i, t);
|
||||
// Previously: data ().insert (data ().begin () + i, t);
|
||||
data () [i] = t;
|
||||
}
|
||||
BOOST_UBLAS_INLINE
|
||||
void erase (size_type i) {
|
||||
// data ().erase (data ().begin () + i);
|
||||
// Previously: data ().erase (data ().begin () + i);
|
||||
data () [i] = value_type ();
|
||||
}
|
||||
BOOST_UBLAS_INLINE
|
||||
void clear () {
|
||||
// data ().clear ();
|
||||
// Previously: data ().clear ();
|
||||
std::fill (data ().begin (), data ().end (), value_type ());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user