// userprog.cc // // An application using the alias: buffer_float, // in place of template method instantiation: "Buffer;". // The alias is defined in userBuffer.h. #include // Declare the instantiated templates. #include "userBuffer.h" using namespace std; int main () { // Initalize the instantiated template buffer_float f(10); f.insert (0.25); f.insert (1.0 + f.get(0)); cout << "stored value = " << f.get(0) << '\n'; return 0; }