Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Wrapper Classes

  1. Mar 8, 2008 #1
    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.
  2. jcsd
  3. Mar 8, 2008 #2
    Are you wrapping primitives or classes?
  4. Mar 8, 2008 #3
    The assignment I have is t write a wrapper class for a templated singly linked list.
  5. Mar 9, 2008 #4
    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.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook