Is there a way to get the number of intervals in a boost::icl::interval_map?
-
26-04-2021 - |
Domanda
Is there an built-in way to get the number of intervals in a boost::icl::interval_map? I can't find it in the documentation. The method size() has a different purpose it seems.
Soluzione
interval_count
doesn't work?
In particular see the documentation here.
Note that due to the way that the library is designed, these are free standing functions that take your structure as a parameter.
Altri suggerimenti
There is also the iterative_size() function for this purpose.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow