Use CGAL_ALLOCATOR

This commit is contained in:
Clement Jamin 2013-07-23 17:51:28 +02:00
parent 18895e6f42
commit 2668cdaf4b
2 changed files with 5 additions and 2 deletions

View File

@ -24,11 +24,13 @@
#ifndef CGAL_CHAINED_MAP_H #ifndef CGAL_CHAINED_MAP_H
#define CGAL_CHAINED_MAP_H #define CGAL_CHAINED_MAP_H
#include <CGAL/memory.h>
namespace CGAL { namespace CGAL {
namespace internal { namespace internal {
template <typename T, typename Allocator = std::allocator<T> > class chained_map; template <typename T, typename Allocator = CGAL_ALLOCATOR(T) > class chained_map;
template <typename T> class chained_map_elem; template <typename T> class chained_map_elem;
template <typename T> template <typename T>

View File

@ -27,6 +27,7 @@
#define CGAL_UNIQUE_HASH_MAP_H #define CGAL_UNIQUE_HASH_MAP_H
#include <CGAL/basic.h> #include <CGAL/basic.h>
#include <CGAL/memory.h>
#include <CGAL/Handle_hash_function.h> #include <CGAL/Handle_hash_function.h>
#include <CGAL/Tools/chained_map.h> #include <CGAL/Tools/chained_map.h>
#include <cstddef> #include <cstddef>
@ -35,7 +36,7 @@ namespace CGAL {
template <class Key_, class Data_, template <class Key_, class Data_,
class UniqueHashFunction = Handle_hash_function, class UniqueHashFunction = Handle_hash_function,
class Allocator_ = std::allocator<Data_> > class Allocator_ = CGAL_ALLOCATOR(Data_) >
class Unique_hash_map { class Unique_hash_map {
public: public:
typedef Key_ Key; typedef Key_ Key;