ソースを参照

Deduction guide for scope_fail implemented (#80).

main
offa 7年前
コミット
b155aa8d7a
1個のファイルの変更4行の追加0行の削除
  1. +4
    -0
      include/scope_fail.h

+ 4
- 0
include/scope_fail.h ファイルの表示

@@ -62,6 +62,10 @@ namespace sr
};


template <class EF>
scope_fail(EF &&ef) -> scope_fail<std::decay_t<EF>>;


template<class EF>
scope_fail<std::decay_t<EF>> make_scope_fail(EF&& exitFunction)
{

読み込み中…
キャンセル
保存