mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-14 11:18:51 +08:00
Clang format
This commit is contained in:
@@ -36,10 +36,8 @@ namespace indicators {
|
||||
|
||||
template <typename Indicator, size_t count> class MultiProgress {
|
||||
public:
|
||||
|
||||
template <typename... Indicators,
|
||||
typename = typename std::enable_if<(sizeof...(Indicators) == count)>::type
|
||||
>
|
||||
typename = typename std::enable_if<(sizeof...(Indicators) == count)>::type>
|
||||
explicit MultiProgress(Indicators &... bars) {
|
||||
_bars = {bars...};
|
||||
for (auto &bar : _bars) {
|
||||
@@ -54,7 +52,8 @@ public:
|
||||
_print_progress();
|
||||
}
|
||||
|
||||
template <size_t index> typename std::enable_if<(index >=0 && index < count), void>::type tick() {
|
||||
template <size_t index>
|
||||
typename std::enable_if<(index >= 0 && index < count), void>::type tick() {
|
||||
if (!_bars[index].get().is_completed())
|
||||
_bars[index].get().tick();
|
||||
_print_progress();
|
||||
|
||||
Reference in New Issue
Block a user