How would I draw C++ concepts in an UML class diagram?
Specifically, I have the following code:
template<typename T>
concept Printable = requires(T a, std::ostream &where) {
{ where << a };
};
template<typename T>
concept Identifiable = requires(T a) {
{ a.getId() } -> std::convertible_to<std::string>;
};
template<typename T>
concept Listable = Identifiable<T> && Printable<T>;
and then a class:
template<Listable T>
class Liste {
...
void add(T *data);
...
}
If it were a regular template, I would just put the T in a square in the corner of the class. But what about the concepts?
