Overview Tutorial API reference Examples Build Download ZmqMessage 0.1 - 21 Oct 2011

include/zmqmessage/DelObj.hpp

Go to the documentation of this file.
00001 
00009 #ifndef ZMQMESSAGE_DELOBJ_HPP_
00010 #define ZMQMESSAGE_DELOBJ_HPP_
00011 
00012 namespace ZmqMessage
00013 {
00014   namespace Private
00015   {
00016     template<class T>
00017     void
00018     del_obj(T* obj)
00019     {
00020       delete obj;
00021     }
00022 
00023     template<class T>
00024     void
00025     del_obj_not_null(T* obj)
00026     {
00027       if (obj != 0)
00028       {
00029         delete obj;
00030       }
00031     }
00032   }
00033 }
00034 
00035 #endif /* ZMQMESSAGE_DELOBJ_HPP_ */

ZmqMessage 0.1 — open source software, support@zmqmessage.org