#pragma once #include // for size_t #include // for string, basic_string #include // for string_view #include // for vector namespace ui { class progress_bar { size_t m_width; size_t m_total; std::vector m_symbols; public: progress_bar(size_t width, size_t total, std::string_view symbols = "⡀ ⡄ ⡆ ⡇ ⡏ ⡟ ⡿ ⣿"); auto operator()(size_t current) const -> std::string; }; } // namespace ui