An Introduction to the Interval Template Library
An Introduction to the Interval Template Library
An Introduction to the Interval Template Library
- 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.orgExamplesA few instances of intervals (interval.cpp)interval int_interval = interval::closed(3,7);interval sqrt_interval= interval::righ<strong>to</strong>pen(1/sqrt(2.0), sqrt(2.0));interval city_interval= interval::lef<strong>to</strong>pen("Barcelona", "Bos<strong>to</strong>n");interval time_interval= interval::open(time_from_string("2008-05-20 19:30"),time_from_string("2008-05-20 23:00"));13