Commit df1a3a14 authored by Victor Zverovich's avatar Victor Zverovich

Remove null_terminating_iterator

parent 78dec87a
...@@ -451,11 +451,6 @@ inline Iterator& reserve(Iterator& it, std::size_t) { ...@@ -451,11 +451,6 @@ inline Iterator& reserve(Iterator& it, std::size_t) {
return it; return it;
} }
template <typename Char> class null_terminating_iterator;
template <typename Char>
FMT_CONSTEXPR_DECL const Char* pointer_from(null_terminating_iterator<Char> it);
// An output iterator that counts the number of objects written to it and // An output iterator that counts the number of objects written to it and
// discards them. // discards them.
template <typename T> class counting_iterator { template <typename T> class counting_iterator {
......
...@@ -109,7 +109,7 @@ class format_preparation_handler : public internal::error_handler { ...@@ -109,7 +109,7 @@ class format_preparation_handler : public internal::error_handler {
typedef format_part<Char> part; typedef format_part<Char> part;
public: public:
typedef internal::null_terminating_iterator<Char> iterator; typedef typename basic_string_view<Char>::iterator iterator;
FMT_CONSTEXPR format_preparation_handler(basic_string_view<Char> format, FMT_CONSTEXPR format_preparation_handler(basic_string_view<Char> format,
PartsContainer& parts) PartsContainer& parts)
...@@ -357,9 +357,6 @@ template <typename Format> class compiletime_prepared_parts_type_provider { ...@@ -357,9 +357,6 @@ template <typename Format> class compiletime_prepared_parts_type_provider {
using char_type = char_t<Format>; using char_type = char_t<Format>;
class count_handler { class count_handler {
private:
typedef internal::null_terminating_iterator<char_type> iterator;
public: public:
FMT_CONSTEXPR count_handler() : counter_(0u) {} FMT_CONSTEXPR count_handler() : counter_(0u) {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment