Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Template typedefs

Posted on 2001-07-08
2
Medium Priority
?
294 Views
Last Modified: 2008-02-01
template<class T>
class A{};

template<class T>
typedef A<T> B<T>;


doesn't seem to work.

What is the correct syntax for saying

`for all class T, B<T> is an alternative name for A<T>'

?
0
Comment
Question by:glebspy
  • 2
2 Comments
 
LVL 7

Expert Comment

by:KangaRoo
ID: 6263739
There is none, it is not in the language.
0
 
LVL 7

Accepted Solution

by:
KangaRoo earned 200 total points
ID: 6263769
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question