阅读背景:

是否可以在STL映射中使用自定义类代替std :: pair?

来源:互联网 

Is this possible?

这可能吗?

#include <map>

class Example {

  private:
  std::map<std::string, std::string, less<std::string>,
    std::allocator< CustomPair<std::string, std::string> > > myMap;
};
#include <map>

cla



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: