Skip to content

decl_queue

sean9892 edited this page Jan 15, 2019 · 3 revisions

in "queue.h"

decl_queue(declname,type);

struct declname{ 	
        declname##_node *head, *tail; 
	size_t dcnt; 
	
	void push(declname*,type); 
	void pop(declname*); 
	size_t size(declname*); 
	bool empty(declname*); 
	type front(declname*); 
	void clear(declname*); 
}; 

declname make_##declname(void); 
Clone this wiki locally