c++ - Template class for non-inline member functions -



c++ - Template class for non-inline member functions -

i trying follow illustration here:

http://www.justsoftwaresolutions.co.uk/threading/implementing-a-thread-safe-queue-using-condition-variables.html

but dont want inline function definitions class definition.

will have set

template<typename data> concurrent_queue<data>::

in front end of function defs , constructors?

yes, will, , definitions still need in header file. why uses inline definitions- because have inline anyway.

c++ templates

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -