S2CellId.childPosition - multiple declarations

Function S2CellId.childPosition

Return the child position (0..3) of this cell within its parent.

int childPosition() const;

REQUIRES

level() >= 1.

Function S2CellId.childPosition

Return the child position (0..3) of this cell's ancestor at the given level within its parent. For example, child_position(1) returns the position of this cell's level-1 ancestor within its top-level face cell.

int childPosition (
  int level
) const;

REQUIRES

1 <= level <= this->level().