/usr/include/HepMC/enable_if.h is in libhepmc-dev 2.06.09-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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | #ifndef ENABLE_IF_H
#define ENABLE_IF_H
// author: Walter Brown
// ----------------------------------------------------------------------
// prolog
namespace HepMC {
namespace detail {
// ----------------------------------------------------------------------
// enable_if<>
/// internal - used to decide if a class is arithmetic
template< bool, class >
struct enable_if
{ };
/// internal - use if class T is arithmetic
template< class T >
struct enable_if<true, T>
{
typedef T type; //!< check type of class T
};
// ----------------------------------------------------------------------
// disable_if<>
/// internal - used by SimpleVector to decide if a class is arithmetic
template< bool, class >
struct disable_if
{ };
/// internal - used by SimpleVector to decide if a class is arithmetic
template< class T >
struct disable_if<false, T>
{
typedef T type; //!< check type of class T
};
// ----------------------------------------------------------------------
// epilog
} // namespace detail
} // namespace HepMC
#endif // ENABLE_IF_H
|