diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-04-13 15:05:38 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-04-13 15:05:38 +0200 |
| commit | a0720bbe3cdfe3174e3d064356b21f0fcd37832e (patch) | |
| tree | 407fc0b80c5ba505998021b20c18cf78c6a65ddc /libs/kstd/src | |
| parent | 45091789eb9e49856ea6c2f3606639d43f4584e7 (diff) | |
| download | teachos-a0720bbe3cdfe3174e3d064356b21f0fcd37832e.tar.xz teachos-a0720bbe3cdfe3174e3d064356b21f0fcd37832e.zip | |
kstd/format: add kstd::format_to
Diffstat (limited to 'libs/kstd/src')
| -rw-r--r-- | libs/kstd/src/vformat.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/libs/kstd/src/vformat.cpp b/libs/kstd/src/vformat.cpp index 51aca84..b7c5121 100644 --- a/libs/kstd/src/vformat.cpp +++ b/libs/kstd/src/vformat.cpp @@ -1,7 +1,6 @@ #include <kstd/format> #include <kstd/string> -#include <algorithm> #include <cstddef> #include <iterator> #include <string_view> @@ -207,18 +206,4 @@ namespace kstd::bits::format return std::move(m_result); } - string_iterator_writer::string_iterator_writer(string::iterator it) - : m_iter{it} - {} - - auto string_iterator_writer::push(std::string_view text) -> void - { - std::ranges::for_each(text, [this](auto c) { push(c); }); - } - - auto string_iterator_writer::push(char character) -> void - { - *m_iter++ = character; - } - } // namespace kstd::bits::format
\ No newline at end of file |
