SoDaRadio-5.0.3-master:8901fb5
RangeMap_test.cxx
Go to the documentation of this file.
1 #include <boost/format.hpp>
2 #include "RangeMap.hxx"
3 #include <string>
4 #include <iostream>
5 
6 int main()
7 {
8  SoDa::Range<double> k1(1.0, 2.0);
10 
11 
12  rmap[k1] = std::string("One-to-two");
13 
14  rmap[SoDa::Range<double>(2.0, 3.0)] = std::string("two-to-three");
15  rmap[SoDa::Range<double>(3.0, 4.0)] = std::string("three-to-four");
16 
17  std::cerr << rmap[2.99999] << std::endl;
18 }
int main()
Specialization of the STL map container to support range-based lookups.
a template class for mapping ranges to thingies This represents an open interval – thanks to suggest...
Definition: RangeMap.hxx:47