Initial implementation of optimal compile-time formatter generation

This commit is contained in:
Victor Zverovich
2019-09-02 17:08:58 -07:00
parent fe642d7648
commit 2fd8f9ec8a
2 changed files with 136 additions and 0 deletions

View File

@@ -295,6 +295,8 @@ template <typename Char> class basic_string_view {
FMT_CONSTEXPR iterator begin() const { return data_; }
FMT_CONSTEXPR iterator end() const { return data_ + size_; }
FMT_CONSTEXPR const Char& operator[](size_t pos) const { return data_[pos]; }
FMT_CONSTEXPR void remove_prefix(size_t n) {
data_ += n;
size_ -= n;