Move all stringref function bodies out of line

This commit is contained in:
Martin Hořeňovský 2017-07-27 10:46:18 +02:00
parent a40add3153
commit 5ebbec7dab
2 changed files with 15 additions and 9 deletions

View file

@ -124,6 +124,18 @@ namespace Catch {
auto StringRef::operator != ( StringRef const& other ) const noexcept -> bool {
return !operator==( other );
}
auto StringRef::operator[](size_type index) const noexcept -> char {
return m_start[index];
}
auto StringRef::empty() const noexcept -> bool {
return m_size == 0;
}
auto StringRef::size() const noexcept -> size_type {
return m_size;
}
auto operator + ( StringRef const& lhs, StringRef const& rhs ) -> String {
StringBuilder buf;