Loki 库学习(1)ScopeGuard
ScopeGuard 主要分两种情况:
1. 调用非成员函数
2. 调用成员函数
含一个参数,非成员函数 的 ScopeGuard 模板:
#include <bits/stdc++.h>
#define rep( i , j , n ) for ( int i = int(j) ; i < int(n) ; ++i )
#define dew( i , j , n )...
原创
2018-08-13 07:43:23 ·
455 阅读 ·
0 评论