mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-20 11:35:39 +02:00
StringRef appends itself to std::string efficiently
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user