eecs280f13_FinalExam

Therelevantfunctionprototypesforthe i t t ls

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: __________________ b) Implement the f n _ ffunction. f n _ ftakes two iterators, f r tand l s , and a idi idi is at predicate p e , and returns an iterator to the first object in the range [ i s , l s )such rd frt at that the dereference of the iterator satisfies the predicate (e.g., p e ( i ) = r e. If no rd*t =tu) such element exists, f n _ freturns l s . Note that f r tis included in the range, whereas idi at is l s is not. at Assume an object of type I e a o behaves similar to the iterator from the L s class trtr it described in lecture, such that it can be moved forward by using the prefix increment operator (for example, + i. +) / EURS is sbfr at /RQIE:frti eoels / OIIS ohn frtadls r asdb au) /MDFE:Ntig(is n ataepse yvle / FET:Rtrsa trtrt h is lmn nterne /EFCS eun nieao otefrteeeti h ag / [is,ls)stsyn rd tews eun at / frt at aifigpe,ohriertrsls. tmlt tpnm trtr yeaePeiae epae<yeaeIeao,tpnm rdct> Ieao idi(trtrfrt trtrfn_fIeao is, trtrls,cntPeiae&rd Ieao at os rdct pe){ } EECS 280 Fall 2013 14/25 uniqname: _________________________ c)...
View Full Document

This test prep was uploaded on 03/10/2014 for the course EECS 280 taught by Professor Noble during the Winter '08 term at University of Michigan.

Ask a homework question - tutors are online