Commit 42c3b385 authored by Steffen Müthing's avatar Steffen Müthing

Merge branch 'feature/remove-backindex' into 'master'

Remove backIndex() and frontIndex()

See merge request !4
parents 7d27b856 c201f25a
Pipeline #4192 passed with stage
in 3 minutes and 37 seconds
......@@ -442,13 +442,6 @@ namespace Dune {
return treePathEntry<treePathSize(tp)-1>(tp);
}
//! Returns the index value of the last element of the `HybridTreePath`.
template<typename... T, typename std::enable_if<(sizeof...(T) > 0),bool>::type = true>
std::size_t backIndex(const HybridTreePath<T...>& tp)
{
return treePathEntry<treePathSize(tp)-1>(tp);
}
//! Returns a copy of the first element of the `HybridTreePath`.
/**
* As `HybridTreePath` instances should not be mutated after their creation, this function
......@@ -462,13 +455,6 @@ namespace Dune {
return treePathEntry<0>(tp);
}
//! Returns the index value of the first element of the `HybridTreePath`.
template<typename... T>
std::size_t frontIndex(const HybridTreePath<T...>& tp)
{
return treePathEntry<0>(tp);
}
//! Appends a run time index to a `HybridTreePath`.
/**
* This function returns a new `HybridTreePath` with the run time index `i` appended.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment