[discretization] Add interfaces element/isBound to grid geometry local views
Another option would to use std::optional
(storing value vs. storing pointer). Seems like that's what's used for the DefaultLocalView in dune-functions. I guess optional involves a copy for grids like YaspGrid.
Can it happen, e.g. in a coupling context object that the element pointed to goes out-of-scope?
I guess it can? Then we should definitely use std::optional
.