/usr/include/xtensor/xoffsetview.hpp is in xtensor-dev 0.10.11-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 | /***************************************************************************
* Copyright (c) 2016, Johan Mabille, Sylvain Corlay and Wolf Vollprecht *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* *
* The full license is in the file LICENSE, distributed with this software. *
****************************************************************************/
#ifndef XOFFSETVIEW_HPP
#define XOFFSETVIEW_HPP
#include "xtensor/xfunctorview.hpp"
namespace xt
{
namespace detail
{
template <class M, std::size_t I>
struct offset_forwarder
{
using value_type = M;
using reference = M&;
using const_reference = const M&;
using pointer = M*;
using const_pointer = const M*;
template <class T>
decltype(auto) operator()(T&& t) const
{
return forward_offset<M, I>(t);
}
};
}
template <class CT, class M, std::size_t I>
using xoffsetview = xfunctorview<detail::offset_forwarder<M, I>, CT>;
}
#endif
|