summaryrefslogtreecommitdiff
path: root/include/fud_utf8_iterator.hpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-10-27 21:50:16 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-10-27 21:50:16 -0500
commitc3cf6df863828798ed8230b0f0966bcf3b2d08dd (patch)
treec03f94128e4892d503532f7fb886dcd86fafdf72 /include/fud_utf8_iterator.hpp
parent7174a2741a6f7aa93c9d077dee384f8aa76d7a02 (diff)
Excise std::optional.
Diffstat (limited to 'include/fud_utf8_iterator.hpp')
-rw-r--r--include/fud_utf8_iterator.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/fud_utf8_iterator.hpp b/include/fud_utf8_iterator.hpp
index ec35927..25aaae6 100644
--- a/include/fud_utf8_iterator.hpp
+++ b/include/fud_utf8_iterator.hpp
@@ -19,10 +19,10 @@
#define FUD_UTF8_ITERATOR_HPP
#include "fud_string.hpp"
+#include "fud_option.hpp"
#include "fud_utf8.hpp"
#include <cstddef>
-#include <optional>
namespace fud {
@@ -47,8 +47,8 @@ class Utf8Iterator {
m_index = 0;
}
- [[nodiscard]] std::optional<FudUtf8> peek() const;
- std::optional<FudUtf8> next();
+ [[nodiscard]] Option<FudUtf8> peek() const;
+ Option<FudUtf8> next();
};
} // namespace fud