Ejemplo n.º 1
0
int test_main(int, char*[])
{
  release_test();
  swap_test();
  move_test();
  return 0;
}
Ejemplo n.º 2
0
Archivo: main.cpp Proyecto: CCJY/coliru
int main() 
{
    auto v = move_test(); 
    auto v1 = std::move(v);
    v = std::move(v1);
    std::list<std::thread> l;
    
    // copy() would not compile, because std::thread is noncopyable
   
    std::move(v.begin(), v.end(), std::back_inserter(l)); 
    for (auto& t : l) t.join();
}