In this question:
Check if a class has a member function of a given signature
They address the problem of how to determine if a class has a member function of some type. This could sound as a naive question but I couldn't find out on my own. How can I determine if there is a static function of that given signature? Could you extend the example given in the question linked to determine if there is a static function in that class that returns used_memory or whatever?