comparison liboctave/Array.h @ 3928:e8627dc4bdf2

[project @ 2002-05-03 19:56:01 by jwe]
author jwe
date Fri, 03 May 2002 19:56:02 +0000
parents b8c1cb5b9fd9
children f9ea3dcf58ee
comparison
equal deleted inserted replaced
3927:e7ad1397d67b 3928:e8627dc4bdf2
246 246
247 Array<T> value (void); 247 Array<T> value (void);
248 248
249 Array<T> index (idx_vector& i) const; 249 Array<T> index (idx_vector& i) const;
250 #endif 250 #endif
251
252 static T resize_fill_value (void) { return static_cast<T> (0); }
251 }; 253 };
252 254
253 template <class LT, class RT> 255 template <class LT, class RT>
254 int 256 int
255 assign (Array<LT>& lhs, const Array<RT>& rhs, const LT& resize_fill_value); 257 assign (Array<LT>& lhs, const Array<RT>& rhs, const LT& resize_fill_value);
256 258
257 template <class LT, class RT> 259 template <class LT, class RT>
258 int 260 int
259 assign (Array<LT>& lhs, const Array<RT>& rhs) 261 assign (Array<LT>& lhs, const Array<RT>& rhs)
260 { 262 {
261 return assign (lhs, rhs, static_cast<LT> (0)); 263 return assign (lhs, rhs, Array<LT>::resize_fill_value ());
262 } 264 }
263 265
264 #endif 266 #endif
265 267
266 /* 268 /*