{"type":"rich","url":"https://toburau.hatenablog.jp/entry/20090416/1239861988","description":"\u30ea\u30b9\u30c8\u306fsort()\u95a2\u6570\u3067\u30bd\u30fc\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u305d\u3057\u3066\u30bd\u30fc\u30c8\u3055\u308c\u305f\u30ea\u30b9\u30c8\u540c\u58eb\u3092merge()\u95a2\u6570\u3067\u30de\u30fc\u30b8\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002 #include <iostream> #include <list> using namespace std; int main() { list<int> l1,l2; // \u30e9\u30f3\u30c0\u30e0\u306a\u5024\u3067\u30ea\u30b9\u30c8\u3092\u4f5c\u6210 for(int i=0; i<5; i++) { l1.push_back(rand()); l2.push_back(rand()); } // \u30ea\u30b9\u30c8\u3092\u30bd\u30fc\u30c8 l1.sort(); l2.sort(); list<int>::iterator p; p = l1\u2026","published":"2009-04-16 15:06:28","author_url":"https://blog.hatena.ne.jp/toburau/","version":"1.0","provider_url":"https://hatena.blog","title":"STL list","blog_url":"https://toburau.hatenablog.jp/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20090416%2F1239861988\" title=\"STL list - \u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"author_name":"toburau","categories":["C++"],"provider_name":"Hatena Blog","blog_title":"\u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18","width":"100%"}