Creating a Wrapper Class in C++

  • Context: C/C++ 
  • Thread starter Thread starter shwanky
  • Start date Start date
  • Tags Tags
    C++ Class
Click For Summary

Discussion Overview

The discussion revolves around creating a wrapper class in C++, specifically focusing on a templated singly linked list. Participants seek examples and clarification on the purpose and lifecycle of C++ templates within this context.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant requests a simple example or tutorial for creating a wrapper class in C++.
  • Another participant inquires whether the wrapping involves primitive types or classes.
  • A participant mentions their assignment involves writing a wrapper class for a templated singly linked list.
  • Further, a participant poses questions regarding the purpose of C++ templates and their interaction within their environment, asking for a lifecycle description.

Areas of Agreement / Disagreement

The discussion does not appear to have a consensus, as participants are exploring different aspects of wrapper classes and templates without resolving the inquiries posed.

Contextual Notes

Participants have not provided specific definitions or assumptions regarding templates or wrapper classes, which may affect the clarity of the discussion.

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.
 
Technology 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.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
81
Views
8K
Replies
4
Views
3K
  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 34 ·
2
Replies
34
Views
4K