2
我有這樣的事情:的一種方式,縮短報關
template<class Key,
class Value,
class Compare_p = Compare<ByKey>,
template<class,class> class Insert_p = NoOverride,
template<class> class FailureSignal_p = ThrowOnFailure,
class AllocFactor_p = AllocFactorScientific<>,
class Alloc = Allocator<FailureSignal_p>
>
class Map : private Map_Base<Implementation> //Implementation is a Link with identical
//params to Map
{
public:
//I've tried to use typedef here but it's too late
typedef LinkImplementation<Pair<Key,Value>,Compare_p,Insert_p,FailureSignal_p,AllocFactor_p,Alloc> Implementation;
};
那麼大Q是:有沒有辦法作出這一聲明(LinkImplementation <的>)縮短?
難道這不是說用戶受苦? `地圖 x` vs`地圖> x`? –
UncleBens
2010-12-08 23:58:21