Hi,
The costs of throwing an exception is well described in Scott Meyer's Item
15 "More Effective C++". The key guidelines
presented were :
a) ... exceptions should be rare. After all, they indicate the
occurrence of events that are exceptional.
b) Compared to a normal function return, returning from a function
by throwing an exception may be as much as three orders of magnitude slower.
I would hope the "TerminatorFunc" or predicate would be added, at some point
in time.
"Thomas Costa"
Will a future version of BGL have a "TerminatorFunc" in all the visitor types?
Throwing an exception as part of the "normal" flow of an algorithm seems to go against most people's C++ philosophy.