다음을 통해 공유


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

C++ Standard Library Header Files