Skip to content

Instantly share code, notes, and snippets.

@kestred
Created February 28, 2014 06:40
Show Gist options
  • Save kestred/9266470 to your computer and use it in GitHub Desktop.
Save kestred/9266470 to your computer and use it in GitHub Desktop.
#include <set>
#include <boost/icl/interval_map.hpp>
typedef std::set<char> set_t;
typedef boost::icl::interval_map<unsigned long long, set_t> imap_t;
typedef boost::icl::discrete_interval<unsigned long long> interval_t;
imap_t testmap = imap_t();
interval_t intervalA = interval_t::closed(3043, 3475);
interval_t intervalB = interval_t::closed(1000, 5000);
set_t charsetA{'a','b','c'};
set_t charsetB{'d','e','f'};
int main(void) {
testmap += std::make_pair(intervalA, charsetA);
testmap += std::make_pair(intervalB, charsetB);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment