forked from fmtlib/fmt
Remove unnecessary trait specialization
This commit is contained in:
@ -1087,7 +1087,11 @@ template <typename T> class basic_appender {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
using iterator_category = int;
|
||||||
|
using value_type = T;
|
||||||
using difference_type = ptrdiff_t;
|
using difference_type = ptrdiff_t;
|
||||||
|
using pointer = T*;
|
||||||
|
using reference = T&;
|
||||||
FMT_UNCHECKED_ITERATOR(basic_appender);
|
FMT_UNCHECKED_ITERATOR(basic_appender);
|
||||||
|
|
||||||
FMT_CONSTEXPR basic_appender(detail::buffer<T>& buf) : buffer_(&buf) {}
|
FMT_CONSTEXPR basic_appender(detail::buffer<T>& buf) : buffer_(&buf) {}
|
||||||
|
@ -271,13 +271,6 @@ inline auto ctzll(uint64_t x) -> int {
|
|||||||
FMT_END_NAMESPACE
|
FMT_END_NAMESPACE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace std {
|
|
||||||
template <typename T> struct iterator_traits<fmt::basic_appender<T>> {
|
|
||||||
using value_type = void;
|
|
||||||
using iterator_category = std::output_iterator_tag;
|
|
||||||
};
|
|
||||||
} // namespace std
|
|
||||||
|
|
||||||
FMT_BEGIN_NAMESPACE
|
FMT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
template <typename Char, typename Traits, typename Allocator>
|
template <typename Char, typename Traits, typename Allocator>
|
||||||
|
Reference in New Issue
Block a user