#include using namespace std; int main(void) { list cache = {1,2,3,4,5}; cout << setw(20) << "list: "; for (auto i: cache) cout << i << " "; cout << endl; auto iter = cache.begin(); advance(iter, 2); // transfers the element pointed to by iter from other into // *this. The element is inserted before the element pointed to by // pos. // pos other cache.splice(cache.begin(), cache, iter); cout << setw(20) << "list after splice: "; for (auto i: cache) cout << i << " "; cout << endl; return 0; }