相关疑难解决方法(0)

为什么 C++ 关联容器谓词默认不透明?

由于 C++14,我们std::less<void>在大多数情况下都是透明且更有用的,因此是否有原因,例如,默认情况下std::set仍将std::less<Key>其作为谓词,而不是std::less<void>历史原因除外。

有用的案例:std::set<std::string>::findwithstd::string_view

c++ containers predicate associative

4
推荐指数
1
解决办法
168
查看次数

标签 统计

associative ×1

c++ ×1

containers ×1

predicate ×1