Skip to content
Snippets Groups Projects
Commit a1c939e4 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

use ext::less in extended containers

parent 9ffc53b1
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <extensions/compare.hpp> #include <extensions/compare.hpp>
#include <extensions/allocFix.hpp> #include <extensions/allocFix.hpp>
#include <extensions/range.hpp> #include <extensions/range.hpp>
#include <extensions/functional.hpp>
   
namespace ext { namespace ext {
   
...@@ -49,7 +50,7 @@ namespace ext { ...@@ -49,7 +50,7 @@ namespace ext {
* \tparam Cmp the comparator type used to order keys * \tparam Cmp the comparator type used to order keys
* \tparam Alloc the allocator of values of type T * \tparam Alloc the allocator of values of type T
*/ */
template < typename T, typename R, typename Cmp = std::less < >, typename Alloc = std::allocator < std::pair < const T, R > > > template < typename T, typename R, typename Cmp = ext::less < >, typename Alloc = std::allocator < std::pair < const T, R > > >
class map : public std::map < T, R, Cmp, Alloc >, AllocFix < Alloc > { class map : public std::map < T, R, Cmp, Alloc >, AllocFix < Alloc > {
public: public:
/** /**
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <extensions/compare.hpp> #include <extensions/compare.hpp>
#include <extensions/allocFix.hpp> #include <extensions/allocFix.hpp>
#include <extensions/range.hpp> #include <extensions/range.hpp>
#include <extensions/functional.hpp>
   
namespace ext { namespace ext {
   
...@@ -44,7 +45,7 @@ namespace ext { ...@@ -44,7 +45,7 @@ namespace ext {
* \tparam Cmp the comparator type used to order keys * \tparam Cmp the comparator type used to order keys
* \tparam Alloc the allocator of values of type T * \tparam Alloc the allocator of values of type T
*/ */
template < typename T, typename Cmp = std::less < >, typename Alloc = std::allocator < T > > template < typename T, typename Cmp = ext::less < >, typename Alloc = std::allocator < T > >
class set : public std::set < T, Cmp, Alloc >, AllocFix < Alloc > { class set : public std::set < T, Cmp, Alloc >, AllocFix < Alloc > {
public: public:
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment