<legend id='GL60a'><style id='GL60a'><dir id='GL60a'><q id='GL60a'></q></dir></style></legend>
    • <bdo id='GL60a'></bdo><ul id='GL60a'></ul>
    <i id='GL60a'><tr id='GL60a'><dt id='GL60a'><q id='GL60a'><span id='GL60a'><b id='GL60a'><form id='GL60a'><ins id='GL60a'></ins><ul id='GL60a'></ul><sub id='GL60a'></sub></form><legend id='GL60a'></legend><bdo id='GL60a'><pre id='GL60a'><center id='GL60a'></center></pre></bdo></b><th id='GL60a'></th></span></q></dt></tr></i><div id='GL60a'><tfoot id='GL60a'></tfoot><dl id='GL60a'><fieldset id='GL60a'></fieldset></dl></div>

  1. <small id='GL60a'></small><noframes id='GL60a'>

    1. <tfoot id='GL60a'></tfoot>

      stl 排序 - 严格弱排序

      stl ordering - strict weak ordering(stl 排序 - 严格弱排序)
    2. <legend id='6PTEt'><style id='6PTEt'><dir id='6PTEt'><q id='6PTEt'></q></dir></style></legend>
          <bdo id='6PTEt'></bdo><ul id='6PTEt'></ul>

            • <small id='6PTEt'></small><noframes id='6PTEt'>

                <tbody id='6PTEt'></tbody>

              <tfoot id='6PTEt'></tfoot>
              <i id='6PTEt'><tr id='6PTEt'><dt id='6PTEt'><q id='6PTEt'><span id='6PTEt'><b id='6PTEt'><form id='6PTEt'><ins id='6PTEt'></ins><ul id='6PTEt'></ul><sub id='6PTEt'></sub></form><legend id='6PTEt'></legend><bdo id='6PTEt'><pre id='6PTEt'><center id='6PTEt'></center></pre></bdo></b><th id='6PTEt'></th></span></q></dt></tr></i><div id='6PTEt'><tfoot id='6PTEt'></tfoot><dl id='6PTEt'><fieldset id='6PTEt'></fieldset></dl></div>
                本文介绍了stl 排序 - 严格弱排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                为什么 STL 使用 严格弱排序的比较函数?为什么不能偏序?

                Why does STL work with a comparison function that is strict weak ordering? Why can't it be partial ordering?

                推荐答案

                A 部分顺序不足以实现某些算法,例如排序算法.由于偏序集合不一定定义集合中所有元素之间的关系,那么如何对偏序内没有顺序关系的两个项目的列表进行排序?

                A partial order would not be sufficient to implement some algorithms, such as a sorting algorithm. Since a partially ordered set does not necessarily define a relationship between all elements of the set, how would you sort a list of two items that do not have an order relationship within the partial order?

                这篇关于stl 排序 - 严格弱排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)
                Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)
                STL BigInt class implementation(STL BigInt 类实现)
                Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)
                Move list element to the end in STL(在 STL 中将列表元素移动到末尾)
                Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)
              • <legend id='FD3M8'><style id='FD3M8'><dir id='FD3M8'><q id='FD3M8'></q></dir></style></legend>

                • <bdo id='FD3M8'></bdo><ul id='FD3M8'></ul>
                    • <small id='FD3M8'></small><noframes id='FD3M8'>

                        <tbody id='FD3M8'></tbody>
                      <tfoot id='FD3M8'></tfoot>

                      1. <i id='FD3M8'><tr id='FD3M8'><dt id='FD3M8'><q id='FD3M8'><span id='FD3M8'><b id='FD3M8'><form id='FD3M8'><ins id='FD3M8'></ins><ul id='FD3M8'></ul><sub id='FD3M8'></sub></form><legend id='FD3M8'></legend><bdo id='FD3M8'><pre id='FD3M8'><center id='FD3M8'></center></pre></bdo></b><th id='FD3M8'></th></span></q></dt></tr></i><div id='FD3M8'><tfoot id='FD3M8'></tfoot><dl id='FD3M8'><fieldset id='FD3M8'></fieldset></dl></div>