aboutsummaryrefslogtreecommitdiff
path: root/src/pair.h
blob: e96cf1803259d828b22ae11789036ff71135488a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef PAIR_H
#define PAIR_H

#define PAIR(T, V) TEMPL2(pair, T, V)

#endif /* PAIR_H */
#if defined(T) && defined(V)

typedef struct {
	T key;
	V val;
} PAIR(T, V);

INIT_F(PAIR(T, V));
FREE_F(PAIR(T, V));
FMT_F(PAIR(T, V));
int DEEP_COPY(PAIR(T, V)) (PAIR(T, V)* dest, PAIR(T, V)* src);

#endif