Namespaces
Variants
Actions

Talk:cpp/iterator/make move iterator

From cppreference.com

Isn't the example invoking an undefined behaviour by printing cout strings that have been moved-out? I know that it will mostly do the right thing anyway, but who knows what implementations might be lurking out there... 77.22.239.109 05:54, 22 February 2016 (PST) j_kubik

No, it's not undefined behavior, merely unspecified. To be pedantic, we should say "possible output". --Cubbi (talk) 06:26, 22 February 2016 (PST)