Skip to content

Instantly share code, notes, and snippets.

@erlonbie
Created September 27, 2023 01:26
Show Gist options
  • Save erlonbie/970f52956ee50520c113d1afac6a61c8 to your computer and use it in GitHub Desktop.
Save erlonbie/970f52956ee50520c113d1afac6a61c8 to your computer and use it in GitHub Desktop.
Template class
template <typename T> void Print2(T &value) {
std::string s = value + std::string("teste");
std::cout << s << std::endl;
}
template <typename T, int N> class Array {
private:
T m_Array[N];
public:
Array() {}
~Array() {}
int get_size() const { return N; }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment