/usr/include/ns3/default-deleter.h is in libns3-dev 3.13+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #ifndef DEFAULT_DELETER_H
#define DEFAULT_DELETER_H
namespace ns3 {
/**
* \brief a template used to delete objects
* by the *RefCount<> templates when the
* last reference to an object they manage
* disappears.
*
* \sa ns3::SimpleRefCount
*/
template <typename T>
struct DefaultDeleter
{
inline static void Delete (T *object) {
delete object;
}
};
} // namespace ns3
#endif /* DEFAULT_DELETER_H */
|