Skip to content
Snippets Groups Projects
Commit 1c57b5ae authored by René Fritze's avatar René Fritze
Browse files

[all] remove misc dead/unnec. code

parent eaa2051c
No related branches found
No related tags found
No related merge requests found
......@@ -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]
**/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment