This file is indexed.

/usr/include/vmmlib/vector_traits.hpp is in libvmmlib-dev 1.0-2.

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
51
52
53
54
55
56
57
// Copyright (c) 2010 Daniel Pfeifer

#ifndef __VMML_VECTOR_TRAITS_HPP__
#define __VMML_VECTOR_TRAITS_HPP__

#include <vmmlib/vector.hpp>
#include <boost/la/vector_traits.hpp>

namespace boost
{
namespace la
{

template<size_t M, typename T>
struct vector_traits<vmml::vector<M, T> >
{
	typedef vmml::vector<M, T> vector_type;

	static const int dim = M;

	typedef T scalar_type;

	template<int I>
	static scalar_type r(const vector_type& v)
	{
		BOOST_STATIC_ASSERT(I >= 0);
		BOOST_STATIC_ASSERT(I < dim);
		return v.array[I];
	}

	template<int I>
	static scalar_type& w(vector_type& v)
	{
		BOOST_STATIC_ASSERT(I >= 0);
		BOOST_STATIC_ASSERT(I < dim);
		return v.array[I];
	}

	static scalar_type ir(int i, const vector_type& v)
	{
		BOOST_ASSERT(i >= 0);
		BOOST_ASSERT(i < dim);
		return v.array[i];
	}

	static scalar_type& iw(int i, vector_type& v)
	{
		BOOST_ASSERT(i >= 0);
		BOOST_ASSERT(i < dim);
		return v.array[i];
	}
};

} // namespace la
} // namespace boost

#endif /* VMML_VECTOR_TRAITS_HPP */