-SmartBuffer()
- : m_buffer( copy( "" ) ){
- incref( m_buffer );
-}
-explicit SmartBuffer( const Allocator& allocator )
- : Allocator( allocator ), m_buffer( copy( "" ) ){
- incref( m_buffer );
-}
-SmartBuffer( const SmartBuffer& other )
- : Allocator( other ), m_buffer( other.m_buffer ){
- incref( m_buffer );
-}
-SmartBuffer( const char* string, const Allocator& allocator = Allocator() )
- : Allocator( allocator ), m_buffer( copy( string ) ){
- incref( m_buffer );
-}
-SmartBuffer( StringRange range, const Allocator& allocator = Allocator() )
- : Allocator( allocator ), m_buffer( copy_range( range ) ){
- incref( m_buffer );
-}
-const char* c_str() const {
- return m_buffer + sizeof( std::size_t );
-}
-void swap( SmartBuffer& other ){
- string_swap( m_buffer, other.m_buffer );
-}
+ SmartBuffer()
+ : m_buffer( copy( "" ) ){
+ incref( m_buffer );
+ }
+ explicit SmartBuffer( const Allocator& allocator )
+ : Allocator( allocator ), m_buffer( copy( "" ) ){
+ incref( m_buffer );
+ }
+ SmartBuffer( const SmartBuffer& other )
+ : Allocator( other ), m_buffer( other.m_buffer ){
+ incref( m_buffer );
+ }
+ SmartBuffer( const char* string, const Allocator& allocator = Allocator() )
+ : Allocator( allocator ), m_buffer( copy( string ) ){
+ incref( m_buffer );
+ }
+ SmartBuffer( StringRange range, const Allocator& allocator = Allocator() )
+ : Allocator( allocator ), m_buffer( copy_range( range ) ){
+ incref( m_buffer );
+ }
+ const char* c_str() const {
+ return m_buffer + sizeof( std::size_t );
+ }
+ void swap( SmartBuffer& other ){
+ string_swap( m_buffer, other.m_buffer );
+ }