A partition with substrings of arbitrary size. More...
Public Member Functions | |
| offsets ()=default | |
| Construct an empty partition. | |
| offsets (const equal_map &em) | |
| Convert an equal mapping. | |
| offsets (storage e) | |
| Construct a partition from specified endpoints. | |
Public Member Functions inherited from map_base< offsets > | |
| constexpr Color | bin (std::size_t) const |
| Find the substring that contains a value. | |
| constexpr std::pair< Color, std::size_t > | invert (std::size_t i) const |
| Express a value in terms of its containing substring. | |
| constexpr std::size_t | operator() (Color) const |
| Return the start of a substring. | |
| constexpr iota_view< std::size_t > | operator[] (Color c) const |
| Return a substring. | |
| constexpr Color | size () const |
| Return the number of substrings. | |
| constexpr std::size_t | total () const |
| Return the length of the overall prefix. | |
A partition with substrings of arbitrary size.
|
default |
Construct an empty partition.
| offsets | ( | storage | e | ) |
Construct a partition from specified endpoints.
The first substring starts at an implicit 0.