Created
February 28, 2014 06:40
-
-
Save kestred/9266470 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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