const adapter for range