• gdr's avatar
    2000-07-15 Gabriel Dos Reis <gdr@codesourcery.com> · c82c078a
    gdr authored
    	* std/valarray_array.h (__valarray_get_memory,
    	__valarray_get_storage, __valarray_release_storage): New
    	functions.
    	(_Array_default_ctor, _Array_init_ctor, _Array_copy_ctor,
    	_Array_copier): New traits classes.
    	(__valarray_default_construct): New function.  Implements valarray
    	default construction.
    	(__valarray_fill_construct): New function. Implements valarray
    	construction with initializer.
    	(__valarray_copy_construct): New function.  Implements valarray
    	copy construction.
    	(__valarray_destroy_elements): New function.
    	(__valarray_copy, __valarray_fill): Tweak.
    	(__valarray_sum, __valarray_product): New helper functions.
    	(_Array<>::free_data): Remove.
    	(_Array<>::_Array): Tweak.
    
    	* std/std_valarray.h (valarray<>::product): Remove.
    	(valarray<>::valarray): Use __valarray_get_storage.
    	(valarray<>::shift, valarray<>::cshift, valarray<>::resize):
    	Tweak.
    
    	* std/cpp_type_traits.h: New file.
    
    	* valarray.cc (multiplies<>, accumulate, valarray<>::product):
    	Remove explicit instantiation.
    	(__valarray_product): New function.
    	(_Indexer::_Indexer): Use.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35055 138bc75d-0d04-0410-961f-82ee72b054a4
    c82c078a
std_valarray.h 23.9 KB