Wouldn't it be easier / better to say

```c++
template<typename I, typename Coord>
bool isDirichlet(const I& ig, const Coord& coord) const
```
here?