File: data.h

package info (click to toggle)
pygccxml 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,444 kB
  • sloc: xml: 29,841; python: 13,914; cpp: 2,671; makefile: 163; ansic: 59
file content (32 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __data_h_10062009__
#define __data_h_10062009__ 1

namespace std{

template<class T1, class T2>
struct pair{
    typedef pair<T1, T2> _Myt;
    typedef T1 first_type;
    typedef T2 second_type;

    pair(): first(T1()), second(T2())
    {}

    pair(const T1& t1, const T2& t2)
    : first(t1), second(t2)
    {}

    T1 first;	// the first stored value
    T2 second;	// the second stored value
};
}

namespace buggy{

struct data_t{
    typedef std::pair<data_t*, data_t*> pair_t;
};

}

#endif//__data_h_10062009__