Poliwrath is certainly viable in those roles, but his attack stat is fairly poor and Machamp etc. will do it much better. The only real niche I've found with him is against Fireblast Tyranitar, but even then his DPS is far from ideal and it's not a good choice if trying to short-man it.
By all means, use Poliwrath if you like him and he'll perform well enough, but I think maxing him would be a waste of Stardust.