unordered-set

    5热度

    3回答

    有谁知道如果它传递一个boost :: unordered_set作为boost :: split的第一个参数是否为kosher?在libboost1.42-dev下,这似乎会导致问题。下面是导致该问题的一个小例子程序,把它test-split.cc: #include <boost/algorithm/string/classification.hpp> #include <boost/alg

    0热度

    3回答

    不幸的是,我不是完全在自己开发的程序上工作。 我最近注意到一个Visual Studio致命错误的操作符unordered_set,这是从一个指向unordered_set的简单插入指针调用的。在回顾了当地人之后,我注意到这个集合只有2个元素,最后一个是NULL(所以我想这就是它的崩溃)。现在回答这个问题:unordered_set(或任何其他STL容器)如何(理论上)可以将NULL指针作为其中一

    3热度

    1回答

    我想使用类似服务净HashSet的数据结构,我试图用默认的散列法和自定义比较使用unordered_set如下: struct comparer { bool operator()(const TCHAR* first,const TCHAR* second) const { return _tcscmp((TCHAR*)first,(TCHAR*)

    3热度

    1回答

    我如何寻找一个std :: unordered_set知道散列值和有一些谓词对象? (通过pred(x) && pred(y)确定等价关系的谓词x == y。)