<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 排序 - 严格弱排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                What is the past-the-end iterator in STL C++?(STL C++ 中的最后迭代器是什么?)
                vector::at vs. vector::operator[](vector::at 与 vector::operator[])
                C++ equivalent of StringBuffer/StringBuilder?(C++ 等效于 StringBuffer/StringBuilder?)
                Adding types to the std namespace(将类型添加到 std 命名空间)
                Is the C++ std::set thread-safe?(C++ std::set 线程安全吗?)
                How to use std::find/std::find_if with a vector of custom class objects?(如何将 std::find/std::find_if 与自定义类对象的向量一起使用?)
              • <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>