summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/30109-templates4.cpp
blob: 781822e80ec74c52de1aa7f6dc97f97c8b0e5498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#define FOO(X) \
	template <unsigned _blk_sz, typename _run_type, class __pos_type> \
	inline X<_blk_sz, _run_type, __pos_type> operator - ( \
		const X<_blk_sz, _run_type, __pos_type> & a, \
		typename X<_blk_sz, _run_type, __pos_type>::_pos_type off) \
	{ \
		return X<_blk_sz, _run_type, __pos_type>(a.array, a.pos - off); \
	} \
	template <unsigned _blk_sz, typename _run_type, class __pos_type> \
	inline X<_blk_sz, _run_type, __pos_type> & operator -= ( \
		X < _blk_sz, _run_type, __pos_type > & a, \
		typename X<_blk_sz, _run_type, __pos_type>::_pos_type off) \
	{ \
		a.pos -= off; \
		return a; \
	}