You are not logged in.
I have a newbie question about C++
I'm being ask to port a C++ sharelib into a kernel driver for work so from C++ => C. I'm not at all familiar with C++ but i'm making some leeway. However i'm a little stuck, what does the following line of code in bold mean in C++ and how would I translate it into C code?
#include <deque>
...
...
...
struct _buffer
{
UINT8* buffer;
UINT8 length;
};
typedef deque< struct _buffer* > MSGQUEUE;
I'm assuming it's type defining a deque of the struct _buffer??? but I'm confused by the <...>, what does that operator do in C++. Is it defining a struct _buffer pointer within the deque???
This might like a "DUH it means...." question to some people so sorry about the stupid question.
--Vincent
Offline
<> is template syntax and is generally the type of object a container holds.. So it is defining that the MSGQUEUE type is a deque holding struct_buffer*'s.
Offline
thank you very much for the explaination
--Vincent
Offline