Forward declare locate() with inline