CppTemplate  1.0.4.0
C++ Template Library
template_class.cpp

Template class example

#include "template/class.h"
#include <iostream>
int main(int argc, char** argv)
{
CppTemplate::Template instance(10);
std::cout << "instance.field() = " << instance.field() << std::endl;
std::cout << "instance.Method(100) = " << instance.Method(100) << std::endl;
std::cout << "CppTemplate::Template::StaticMethod(1000) = " << CppTemplate::Template::StaticMethod(1000) << std::endl;
return 0;
}
Template class definition.
Template class.
Definition: class.h:21
int field() const noexcept
Get field value.
Definition: class.h:36
static int StaticMethod(int parameter) noexcept
Some static method.
Definition: class.inl:11
int Method(int parameter) const noexcept
Some method.
Definition: class.cpp:15