diff --git a/dune/stuff/common/misc.hh b/dune/stuff/common/misc.hh index 1e66c042ad768a9e340767a3ff4096c6575f85a8..35a5e291c8fee236adaa3ad69e528e3c292c1fa0 100644 --- a/dune/stuff/common/misc.hh +++ b/dune/stuff/common/misc.hh @@ -48,18 +48,10 @@ inline int getIdx(const StlSequence& ct, const typename StlSequence::value_type& auto result = std::find(ct.begin(), ct.end(), val); if (result == ct.end()) return -1; - return std::distance(ct.begin(), result); } // getIdx -//! \todo seems borked, resutls in gigantic amount of compile errors?! -template <class StlSequence, class T> -void fill_entirely(StlSequence& c, const T& value) -{ - std::fill(c.begin(), c.end(), value); -} - /** this allows subscription indices to wrap around * \example N=4: wraparound_array[4] == wraparound_array[0] && wraparound_array[-1] == wraparound_array[3] **/