This code:
/* 1 */ template <typename T> class MyClass { ... }; //template class for every T
/* 2 */ template <> class MyClass<char> { ... }; //template class full specialization for T=char
This code:
/* 1 */ template <typename T> class MyClass { ... }; //template class for every T
/* 2 */ template <> class MyClass<char> { ... }; //template class full specialization for T=char
On April 17th, my beloved and closest aunt passed away; she was very sick the last months and the last days were very painful; she is resting right now :(
Bye Tiitay
#include <iostream>
#include <string>
int main()
{
std::string greeting = "Ifmmp!xpsme\"";
for (std::string::const_iterator i = greeting.begin(); i != greeting.end(); ++i)
std::cout << static_cast<char>((*i) - 1);
std::cout << std::endl;
return 0;
}
Hello,
In this blog, I want to publish interesting information about C++ and related topics (object-oriented programming, generic programming, etc.). The goal is to provide useful and accurate information. Since I am passionate about these topics but far from being an expert, I would appreciate your help in improving the accuracy of each post I write. Your comments and suggestions will be greatly appreciated and will help me enhance the content of this blog day by day.
Welcome, and thank you for reading!