| 2811 | } |
| 2812 | |
| 2813 | static std::string flipMinMax(const std::string &algo) |
| 2814 | { |
| 2815 | if (algo == "std::max_element") |
| 2816 | return "std::min_element"; |
| 2817 | if (algo == "std::min_element") |
| 2818 | return "std::max_element"; |
| 2819 | return algo; |
| 2820 | } |
| 2821 | |
| 2822 | static std::string minmaxCompare(const Token *condTok, nonneg int loopVar, nonneg int assignVar, LoopType loopType, bool invert = false) |
| 2823 | { |