fork(3) download
#include 
#include 
using namespace std;

struct mystruct{};

template
struct map;

//partial specification
#define MAPPING(Key, Val)       \
template<>                      \
struct map                 \
{                               \
typedef Val mapping_type;	\
};

MAPPING(mystruct, int)

template
void func(T t)
{
	typename map::mapping_type i = 999;
	cout<
				
				
				
				
				
				
			
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
999