Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Copy-and-swap idiom for C++11

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1,86 sec, absolute running time: 1,5 sec, absolute service time: 3,37 sec 
edit mode |  history
 =========== Test 1 ==============
s1 = '' ; size = 1

 =========== Test 2 ==============
s2 = 'hello world C++ copy-and-swap - São Paulo, São João da Barra' ; size = 64
 [BEFORE] s2Copy = 'C++ copy-and-swap1' ; size = 19
 [AFTER1]  s2Copy = 'hello world C++ copy-and-swap - São Paulo, São João da Barra' ; size = 64

 =========== Test 3 ==============
 [AFTER2]  s2Copy = 'move-assignment operator' ; size = 25
 s3 = 'move-constructor - hello world' ; size = 32

 =========== Test 4 ==============
 s4 = 'move-constructor - hello world' - s3 = 'string s4'

 =========== Test 5 ==============
 [MOVE] s3 = hello world C++ copy-and-swap - São Paulo, São João da Barra

    
                
λ
.NET NoSQL database for rapid development