Ubuntu – custom allocator and std::map
Here's the code i'm able to compile with gcc: #include <iostream> #include <map> template <class T> class map_alloc { public: typedef std::size_t size_type; typedef std::ptrdiff_t difference_type; typedef T* pointer; typedef const T* const_pointer; typedef T& reference; typedef const T& const_reference;…