17

次の関数を検討してください。

// Declaration in the .h file
class MyClass
{
    template <class T> void function(T&& x) const;
};

// Definition in the .cpp file
template <class T> void MyClass::function(T&& x) const;

noexceptTが非スロー構築可能である場合、この関数を作成したいと思います。

どうやってするか ?(つまり、構文は何ですか?)

4

2 に答える 2