ns-allinone-2.35/ns-2.35/dccp/dccp_sb.cc
int DCCPSendBuffer::remove(){
	int result = 0;
	if (!empty_){
		result = buf_[head_];
		//remove element
		if (head_ != tail_)
			head_ = (head_+1) % size_;
		else
			empty_ = true;
	}
	return result;
}
/* Return and remove the top element
 * ret: the top element. If empty, return 0.
 */
Return and remove the top element
ret: the top element. If empty, return 0.
Return and remove the top element ret : the top element . If empty return 0 .
int DCCPSendBuffer::remove(){
	int result = 0;
	if (!empty_){
		result = buf_[head_];
		if (head_ != tail_)
			head_ = (head_+1) % size_;
		else
			empty_ = true;
	}
	return result;
}
int DCCPSendBuffer :: remove ( ) { int result = 0 ; if ( ! empty_ ) { result = buf_ [ head_ ] ; if ( head_ != tail_ ) head_ = ( head_ + 1 ) % size_ ; else empty_ = true ; } return result ; }
Return and remove the top element
 ret: the top element.
Return and remove the top element ret : the top element .
//remove element