If you understand correctly, you are looking for a way to automatically generate a concept archetype for a given template class. This is currently not possible, and perhaps it will never be.
The main problem here is that it is very difficult to say anything about the semantics of code A without prior knowledge of T Dave Abrahams wrote a blog post not so long ago, where he showed that you can call a function without restrictions from code that is limited by concepts and the compiler can still correctly perform concept checks.
But what you are asking for is a compiler that synthesizes conceptual checks from the air. I am not a very compiler, but I canβt figure out how to do this with today's tools. Although, of course, it would be very cool if it became possible some day.
source share