07.03.2013 Views

here - Chara - University of Illinois at Urbana-Champaign

here - Chara - University of Illinois at Urbana-Champaign

here - Chara - University of Illinois at Urbana-Champaign

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Lecture<br />

04—Templ<strong>at</strong>e<br />

P<strong>at</strong>terns I<br />

Chase Geigle<br />

Announcements<br />

Templ<strong>at</strong>e<br />

Specializ<strong>at</strong>ion<br />

Partial<br />

Templ<strong>at</strong>e<br />

Specializ<strong>at</strong>ion<br />

Templ<strong>at</strong>e<br />

Templ<strong>at</strong>e<br />

Parameters<br />

Next Time<br />

Motiv<strong>at</strong>ion<br />

We typically use templ<strong>at</strong>es for writing generic programs...<br />

...but wh<strong>at</strong> if we want to have a “special case”<br />

(Controversial) Example: vector<br />

Traditional implement<strong>at</strong>ion wastes a lot <strong>of</strong> space.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!