/usr/include/dune/common/array.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 40 41 42 43 44 | // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_ARRAY_HH
#define DUNE_ARRAY_HH
/** \file
\brief Fallback implementation of the std::array class (a static array)
*/
#include <array>
#include <dune/common/streamoperators.hh>
#include <dune/common/std/make_array.hh>
namespace Dune
{
/** @addtogroup Common
@{
*/
// pull in default implementation
using std::array;
using Dune::Std::make_array;
//! Create an array and fill it with copies of the provided value.
/**
* \note This method is Dune-specific and not part of any C++ standard.
*/
template<typename T, std::size_t n>
std::array<T,n> fill_array(const T& t)
{
std::array<T,n> r;
r.fill(t);
return r;
}
/** @} */
} // end namespace Dune
#endif
|