static std::pair bounds()

in glean/rocksdb/rocksdb.cpp [932:942]


    static std::pair<Id,Id> bounds(
        Id from, Id downto, Id starting_id, Id next_id) {
      if (downto >= next_id || (from && from <= starting_id)) {
        return {Id::invalid(), Id::invalid()};
      } else {
        return {
          (from && from <= next_id ? from : next_id) - 1,
          std::max(downto, starting_id)
        };
      }
    }