This file is indexed.

/usr/include/cwidget/generic/util/bool_accumulate.h is in libcwidget-dev 0.5.17-4+b1.

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
// bool_accumulate.h                           -*-c++-*-
//
//  Copyright 2005 Daniel Burrows

#ifndef BOOL_ACCUMULATE
#define BOOL_ACCUMULATE

namespace cwidget
{
  namespace util
  {
    /** Computes the return-value of the signal via a short-circuiting
     *  AND.  If no slots are connected to the signal, returns \b true.
     */
    struct accumulate_and
    {
      typedef bool result_type;
      template<typename T_iterator>
      result_type operator()(T_iterator first, T_iterator last) const
      {
	for(; first!=last; ++first)
	  if(!*first)
	    return false;

	return true;
      }
    };

    /** Computes the return-value of the signal via a short-circuiting
     *  OR.  If no slots are connected to the signal, returns \b false.
     */
    struct accumulate_or
    {
      typedef bool result_type;
      template<typename T_iterator>
      result_type operator()(T_iterator first, T_iterator last) const
      {
	for(; first!=last; ++first)
	  if(*first)
	    return true;

	return false;
      }
    };
  }
}

#endif