
Ion GaztaƱaga wrote:
I agree. Having T as the first parameter would be ideal. Putting the configuration pack at the end of the expected parameters (predicate function + hash). Something like:
list<T, ...> set<T, Pred, options...> unordered_set<T, Hash, Pred, options...>
Well, this one would have the "consistency bonus". Still, I'd probably put everything OPTIONal into the options, because it's just more practical.
Whatever option I choose, I'll need to think about how I'll pass diverse hook information in the configuration and still support the stateful non-intrusive hooks you pointed out in this thread. Who said Intrusive was just in maintenance mode!
I'm glad to hear you found the discussion inspiring - it has been a pleasure. Regards, Tobias