| 341 | */ |
| 342 | template <typename ItType, typename FnType> |
| 343 | void SplitProgress( |
| 344 | ItType first, ItType last, FnType action, ProgressReporter parent) |
| 345 | { |
| 346 | auto count = 0; |
| 347 | const auto numIters = std::distance(first, last); |
| 348 | if (numIters == 0) |
| 349 | return; |
| 350 | const ProgressReporter child = |
| 351 | parent ? [&](double progress) { parent((count + progress) / numIters); } : |
| 352 | ProgressReporter {}; |
| 353 | |
| 354 | for (; first != last; ++first) |
| 355 | { |
| 356 | action(*first, child); |
| 357 | ++count; |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | //! Display a dialog with radio buttons. |
| 362 | /*! |
no outgoing calls
no test coverage detected