Share via


swap Function (STL)

Swaps the stored file names of two basic_path objects.

template<class String,
   class Traits>
inline void swap(
   basic_path<String,
   Traits>& Left,
   basic_path<String,
   Traits>& Right
);

Parameters

  • Left
    The left basic_path object.

  • Right
    The right basic_path object.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

<filesystem>

basic_path::swap Method

Other Resources

Header Files