This file is indexed.

/usr/include/dune/common/promotiontraits.hh is in libdune-common-dev 2.5.1-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
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_PROMOTIONTRAITS_HH
#define DUNE_PROMOTIONTRAITS_HH

#include <utility>

namespace Dune {
  /**
   * @file
   * @brief  Compute type of the result of an arithmetic operation involving two different number types.
   *
   * @author Matthias Wohlmuth
   */

  /** @addtogroup Common
   *
   * @{
   */

  /** \brief Compute type of the result of an arithmetic operation involving two different number types.
  */
  template <typename T1, typename T2>
  struct PromotionTraits
  {
    typedef decltype(std::declval<T1>()+std::declval<T2>()) PromotedType;
  };

  // Specialization for the case of two equal types
  // One should think that the generic template should handle this case as well.
  // However, the fvectortest.cc unit test fails without it if ENABLE_GMP is set.
  template <typename T1>
  struct PromotionTraits<T1,T1> { typedef T1 PromotedType; };

  /** @} */
} // end namespace


#endif // DUNE_PROMOTIONTRAITS_HH