StringRef appends itself to std::string efficiently
This commit is contained in:
parent
cf4b7eead9
commit
950ccf4749
3 changed files with 9 additions and 2 deletions
|
@ -92,6 +92,8 @@ namespace Catch {
|
|||
|
||||
auto operator[] ( size_type index ) const noexcept -> char;
|
||||
|
||||
friend auto operator += ( std::string& lhs, StringRef const& rhs ) -> std::string&;
|
||||
|
||||
public: // named queries
|
||||
auto empty() const noexcept -> bool {
|
||||
return m_size == 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue