Files
foc/tools/preprocess/test/implement_template.cpp
2013-02-20 12:17:17 +01:00

32 lines
430 B
C++

INTERFACE:
template< typename T >
class Test
{
public:
void test_func();
};
IMPLEMENTATION:
IMPLEMENT
template< typename T >
// comment
void __attribute__((deprecated))
Test<T>::test_func()
{
}
PUBLIC
template< typename T > // comment 1
template<
typename X, // comment within template args list
typename X2 // another comment in tl args
>
// comment 2
void __attribute__((deprecated))
Test<T>::test_func2<X, X2>()
{
}