forked from boostorg/unordered
Unordered: Remove some junk from the end of memory.hpp
[SVN r79353]
This commit is contained in:
@ -160,30 +160,6 @@ namespace test
|
|||||||
test::detail::memory_tracker tracker;
|
test::detail::memory_tracker tracker;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template <int Value>
|
|
||||||
struct bool_type {
|
|
||||||
enum { value = (Value ? true : false) };
|
|
||||||
};
|
|
||||||
|
|
||||||
struct true_type {
|
|
||||||
enum { value = true };
|
|
||||||
};
|
|
||||||
|
|
||||||
struct false_type {
|
|
||||||
enum { value = false };
|
|
||||||
};
|
|
||||||
|
|
||||||
struct convert_from_anything
|
|
||||||
{
|
|
||||||
template <typename T>
|
|
||||||
convert_from_anything(T const&) {}
|
|
||||||
};
|
|
||||||
|
|
||||||
int selected_count(convert_from_anything)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -293,6 +293,20 @@ namespace test
|
|||||||
return x.tag_ == y.tag_;
|
return x.tag_ == y.tag_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Function to check how many times an allocator has been selected,
|
||||||
|
// return 0 for other allocators.
|
||||||
|
|
||||||
|
struct convert_from_anything
|
||||||
|
{
|
||||||
|
template <typename T>
|
||||||
|
convert_from_anything(T const&) {}
|
||||||
|
};
|
||||||
|
|
||||||
|
inline int selected_count(convert_from_anything)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
template <typename T, typename Flags>
|
template <typename T, typename Flags>
|
||||||
int selected_count(cxx11_allocator<T, Flags> const& x)
|
int selected_count(cxx11_allocator<T, Flags> const& x)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user