non credo che funzionerà come quello fuori dalla scatola come equal_range
restituisce una coppia di iteratori po ', il ciclo per più di gamma in base alla documentation sono:
The begin_expr and end_expr are defined to be either:
If (__range) is an array, then (__range) and (__range + __bound), where __bound is the array bound
If (__range) is a class and has either a begin or end member (or both), then begin_expr is __range.begin() and end_expr is __range.end();
Otherwise, begin(__range) and end(__range), which are found based on argument-dependent lookup rules with std as an associated namespace.
Direi che è possibile definire le funzioni begin
e end
che eseguono la coppia di iteratori e restituiscono il primo e il secondo in modo prospettico.
fonte
2013-03-20 17:18:41
È possibile utilizzare Boost? – inf
Se è possibile utilizzare boost, boost ha un iteratore di intervallo. – OmnipotentEntity
sì, posso, e lo faccio :) <3 boost – NoSenseEtAl