6 #include "allocators.h"
10 static bool allocator_constructed;
12 typedef A1<int> allocator_type;
16 alloc_first() : data_(0) {}
17 alloc_first(int d) : data_(d) {}
18 alloc_first(std::allocator_arg_t, const A1<int>& a)
22 allocator_constructed = true;
25 alloc_first(std::allocator_arg_t, const A1<int>& a, int d)
29 allocator_constructed = true;
32 alloc_first(std::allocator_arg_t, const A1<int>& a, const alloc_first& d)
36 allocator_constructed = true;
39 ~alloc_first() {data_ = -1;}
41 friend bool operator==(const alloc_first& x, const alloc_first& y)
42 {return x.data_ == y.data_;}
43 friend bool operator< (const alloc_first& x, const alloc_first& y)
44 {return x.data_ < y.data_;}
47 bool alloc_first::allocator_constructed = false;
49 #endif // ALLOC_FIRST_H