我需要用bool参数实现模板.如果bool = true,我们需要使用list conteiner,否则我们需要使用vector conteiner.
template <bool isList>
我该怎么做?
c++ templates boolean
boolean ×1
c++ ×1
templates ×1