/* */ #ifndef D_NULL_HANDLE_H #define D_NULL_HANDLE_H #include "common.h" #include namespace aria2 { // Returns const reference of std::shared_ptr(). Static variable null // is shared by all instantiation of this function template. template const std::shared_ptr& getNull() { static std::shared_ptr null; return null; } } // namespace aria2 #endif // D_NULL_HANDLE_H