Creating a Wrapper Class in C++

  • Context: C/C++ 
  • Thread starter Thread starter shwanky
  • Start date Start date
  • Tags Tags
    C++ Class
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
shwanky
Messages
43
Reaction score
0
Can anyone give me a simple example of how to creating a wrapper class in C++? Or maybe a link to a tutorial would also do.
 
Physics news on Phys.org
Are you wrapping primitives or classes?
 
The assignment I have is t write a wrapper class for a templated singly linked list.
 
Ok. Now according to you:
(1) What purpose does a C++ template serve?

(2) How does it interact in itz environment. Give a life cycle description, if you can.