Hi all
i am going through reading pahse for C++ templates where i came across some doubts .
1] The code snippet to which i came across in the document is as follows
what is the use of declaring the typedef inside the class template. what is the scope for the typedef ? is this typedef restricted to the class definitions and their instances or it can be protected to the outside world with the access specifiers as protected and privete?
2] When the Argument Dependent Lookup comes in to play in the templates ? this is not very clear when i came across some words like unqualified dependent names .... help in understanding this ADL concept would be of great help in understanding the templates for me ...
thanks in advance
sanjay
i am going through reading pahse for C++ templates where i came across some doubts .
1] The code snippet to which i came across in the document is as follows
Code:
template <typename T>
class CTest {
public:
typedef int I;
};
what is the use of declaring the typedef inside the class template. what is the scope for the typedef ? is this typedef restricted to the class definitions and their instances or it can be protected to the outside world with the access specifiers as protected and privete?
2] When the Argument Dependent Lookup comes in to play in the templates ? this is not very clear when i came across some words like unqualified dependent names .... help in understanding this ADL concept would be of great help in understanding the templates for me ...
thanks in advance
sanjay