Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

move semantics in c++

void swap(T& a, T& b){
    T temp = std::move(a);
    a = std::move(b);
    b = std::move(temp);
}
 
PREVIOUS NEXT
Tagged: #move #semantics
ADD COMMENT
Topic
Name
6+5 =