I'm designing a program that frequently deals with coordinate pairs. I've decided to use stl::pair for this purpose. As these are all coordinate pairs, they will all be of type pair<int, int>. My question is, rather than declaring pair<int, int> each time, like seen here:
can I create some kind of alias that would allow me to do this:
Code:
pair<int, int> foo;
void bar(pair<int, int>* biz) {
return;
}
Code:
intpair foo;
void bar(intpair* biz) {
return;
}
Comment