Generic function without explicit inlines