{"comment":{"commit_id":"4c44fd17994b7e5f760dc42e87bbb05ee28df7b8","created_at":"2011-11-21T16:42:23Z","position":56,"updated_at":"2011-11-21T16:42:23Z","user":{"gravatar_id":"a2489a952557cbb2e949e8ed5a955656","id":830260,"url":"https://api.github.com/users/mitsutaka-takeda","login":"mitsutaka-takeda","avatar_url":"https://secure.gravatar.com/avatar/a2489a952557cbb2e949e8ed5a955656?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"再起呼び出し間の情報の受け渡しにメンバ変数を利用しないほうが実装がすっきりするような気がします。例えば、privateのメンバ関数でdoSort(vector,unsinged int, unsigned int)というシグネチャにすると、メンバ変数は要らなくなります。publicのsort関数では、１番最初のdoSortの呼び出しを行えば良い。\n\nsort(vector& vec){\n    doSort(vec,0,vec.size());\n}","line":56,"id":735339,"path":"QuickSort/RecursiveQuickSort.cpp","html_url":"https://github.com/mtakizawa/Practice-OF-Programming/commit/4c44fd1799#commitcomment-735339","url":"https://api.github.com/repos/mtakizawa/Practice-OF-Programming/comments/735339"}}