次の関数を検討してください。
// 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;
noexcept
型T
が非スロー構築可能である場合、この関数を作成したいと思います。
どうやってするか ?(つまり、構文は何ですか?)