mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-12 16:21:13 +00:00
28 lines
561 B
C++
28 lines
561 B
C++
/*
|
|
* File: fairroot_null_deleter.h
|
|
* Author: winckler
|
|
*
|
|
* Created on September 21, 2015, 11:50 AM
|
|
*/
|
|
|
|
#ifndef FAIRROOT_NULL_DELETER_H
|
|
#define FAIRROOT_NULL_DELETER_H
|
|
// boost like null_deleter introduced for backward compability if boost version < 1.56
|
|
|
|
namespace fairroot
|
|
{
|
|
struct null_deleter
|
|
{
|
|
//! Function object result type
|
|
typedef void result_type;
|
|
/*!
|
|
* Does nothing
|
|
*/
|
|
template< typename T >
|
|
void operator() (T*) const noexcept {}
|
|
};
|
|
|
|
}
|
|
#endif /* FAIRROOT_NULL_DELETER_H */
|
|
|