//Line1 template <class T> class mycontainer { //some code }; // Line2 template <> class mycontainer <char> { char element; public: mycontainer (char arg) {element=arg;} //some code };
Analyse the code snippet given above and choose the correct inferences that can be made.
Options
- Line 2 defines the class template specialization
- Line1 defines the class template specialization
- Line 2 defines the generic class template
- Both L1 and L2 are part of the class template specialization