Sign in to follow this  
uutee

UML - C++ templates

Recommended Posts

Hello, I've been wondering how UML generalizes to C++ templates? Assume we have something like template <class State, class Action> class Planner { std::list<Action> GetPlan ( const State& initialState, const State& goalState ); }; At the moment I'm using "real classes" for State and Action in UML, and drawing a line (not an association) from them to Planner, stating that it's about templates. But this all seems so ad hoc. I guess this problem has been studied by other people who came up with something more clean and general? -- Mikko

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this