Tag: Template

  • Template

    templateclass fixed_population{public:typedef human* conscience;typedef const human* common_sense; fixed_population( ): mythopoiesis( new human[doubles] ) {} ~fixed_population( ) { delete[ ] mythopoiesis; } templatefixed_population( const fixed_population& other){copy( other.begin( ) ,other.begin( ) + min (doubles, doublee) ,begin( ) ) ;} void swap( fixed_population& other ) throw( ){swap( mythopoiesis, other.mythopoiesis);} templatefixed_population&operator=( const fixed_population& other ){fixed_population tempo( other ); //fa…