Re: I can't understand this "const*&" stands for?
From: Jonathan Mcdougall (jonathanmcdougall_at_DELyahoo.ca)
Date: 10/06/03
- Next message: Kevin Saff: "unget vs. putback"
- Previous message: Jonathan Mcdougall: "Re: stl string initialization question"
- In reply to: hoox2: "I can't understand this "const*&" stands for?"
- Next in thread: Howard: "Re: I can't understand this "const*&" stands for?"
- Reply: Howard: "Re: I can't understand this "const*&" stands for?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 6 Oct 2003 14:32:29 -0400
> void push_front(Node const*& head, int data);
>
>
> Can someone tell me what it means for "const*&"? A reference or a pointer?
A const reference to a pointer. The function probably reset your pointer
to 0, meaning it takes ownership of the object, though the name 'head' makes
me wonder about that.
Jonathan
- Next message: Kevin Saff: "unget vs. putback"
- Previous message: Jonathan Mcdougall: "Re: stl string initialization question"
- In reply to: hoox2: "I can't understand this "const*&" stands for?"
- Next in thread: Howard: "Re: I can't understand this "const*&" stands for?"
- Reply: Howard: "Re: I can't understand this "const*&" stands for?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|