path::swap Method

Exchanges the file-name string contents from a specified path object for the file-name string contents of the other object.

void swap(
   path& Right
);

Parameters

  • Right
    A path object.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

path Class (C++ Standard Template Library)

<filesystem>

basic_string::swap