Force inline StringView::{begin,end}

This commit is contained in:
Maxime Coste 2014-12-09 13:56:05 +00:00
parent 87d312b6d4
commit 2f2752cd1d

View File

@ -72,7 +72,9 @@ public:
using iterator = const char*;
using reverse_iterator = std::reverse_iterator<const char*>;
[[gnu::always_inline]]
iterator begin() const { return m_data; }
[[gnu::always_inline]]
iterator end() const { return m_data + (int)m_length; }
reverse_iterator rbegin() const { return reverse_iterator{m_data + (int)m_length}; }