C++ 函式庫 - 交換



描述

它交換了 *this 和 other 的儲存的可呼叫物件。

宣告

以下是 std::function::swap 的宣告。

void swap( function& other );

C++11

void swap( function& other );

引數

other − 它是一個函式包裝器,用於交換儲存的可呼叫物件。

返回值

異常

無異常 − 此成員函式從不丟擲異常。

functional.htm
廣告