Home | History | Annotate | Download | only in allocator.globals
      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // <memory>
     11 
     12 // allocator:
     13 
     14 // template <class T1, class T2>
     15 //   bool
     16 //   operator==(const allocator<T1>&, const allocator<T2>&) throw();
     17 //
     18 // template <class T1, class T2>
     19 //   bool
     20 //   operator!=(const allocator<T1>&, const allocator<T2>&) throw();
     21 
     22 #include <memory>
     23 #include <cassert>
     24 
     25 int main()
     26 {
     27     std::allocator<int> a1;
     28     std::allocator<int> a2;
     29     assert(a1 == a2);
     30     assert(!(a1 != a2));
     31 }
     32