12.07.2015 Views

An Introduction to the Interval Template Library

An Introduction to the Interval Template Library

An Introduction to the Interval Template Library

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Copyright © Joachim Faulhaber 2009Slide Design by Chih-Hao Tsai http://www.chtsai.orgDesignAggregate on overlap, a minimal exampletypedef itl::set guests;interval_map party;party += make_pair(interval::righ<strong>to</strong>pen(20:00, 22:00), guests("Mary"));party += make_pair(interval::righ<strong>to</strong>pen(21:00, 23:00), guests("Harry"));// party now contains[20:00, 21:00)->{"Mary"}[21:00, 22:00)->{"Harry","Mary"} //guest sets aggregated[22:00, 23:00)->{"Harry"}8

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

Saved successfully!

Ooh no, something went wrong!