Make the comparison objects that we pass in for various tests look more like actual comparison objects. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@272288 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -28,6 +28,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp();
|
some_comp();
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
~some_comp() noexcept(false);
|
~some_comp() noexcept(false);
|
||||||
|
bool operator()(const T&, const T&) const noexcept { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp& operator=(const some_comp&);
|
some_comp& operator=(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp(const some_comp&);
|
some_comp(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|||||||
@@ -35,9 +35,7 @@ struct some_comp
|
|||||||
|
|
||||||
some_comp() {}
|
some_comp() {}
|
||||||
some_comp(const some_comp&) {}
|
some_comp(const some_comp&) {}
|
||||||
void deallocate(void*, unsigned) {}
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
|
|
||||||
typedef std::true_type propagate_on_container_swap;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
@@ -47,8 +45,7 @@ struct some_comp2
|
|||||||
|
|
||||||
some_comp2() {}
|
some_comp2() {}
|
||||||
some_comp2(const some_comp2&) {}
|
some_comp2(const some_comp2&) {}
|
||||||
void deallocate(void*, unsigned) {}
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
typedef std::true_type propagate_on_container_swap;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#if TEST_STD_VER >= 14
|
#if TEST_STD_VER >= 14
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp();
|
some_comp();
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
~some_comp() noexcept(false);
|
~some_comp() noexcept(false);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp& operator=(const some_comp&);
|
some_comp& operator=(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp(const some_comp&);
|
some_comp(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|||||||
@@ -35,9 +35,7 @@ struct some_comp
|
|||||||
|
|
||||||
some_comp() {}
|
some_comp() {}
|
||||||
some_comp(const some_comp&) {}
|
some_comp(const some_comp&) {}
|
||||||
void deallocate(void*, unsigned) {}
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
|
|
||||||
typedef std::true_type propagate_on_container_swap;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
@@ -47,8 +45,7 @@ struct some_comp2
|
|||||||
|
|
||||||
some_comp2() {}
|
some_comp2() {}
|
||||||
some_comp2(const some_comp2&) {}
|
some_comp2(const some_comp2&) {}
|
||||||
void deallocate(void*, unsigned) {}
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
typedef std::true_type propagate_on_container_swap;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#if TEST_STD_VER >= 14
|
#if TEST_STD_VER >= 14
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp();
|
some_comp();
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
~some_comp() noexcept(false);
|
~some_comp() noexcept(false);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp& operator=(const some_comp&);
|
some_comp& operator=(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp(const some_comp&);
|
some_comp(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|||||||
@@ -35,9 +35,7 @@ struct some_comp
|
|||||||
|
|
||||||
some_comp() {}
|
some_comp() {}
|
||||||
some_comp(const some_comp&) {}
|
some_comp(const some_comp&) {}
|
||||||
void deallocate(void*, unsigned) {}
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
|
|
||||||
typedef std::true_type propagate_on_container_swap;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
@@ -47,8 +45,7 @@ struct some_comp2
|
|||||||
|
|
||||||
some_comp2() {}
|
some_comp2() {}
|
||||||
some_comp2(const some_comp2&) {}
|
some_comp2(const some_comp2&) {}
|
||||||
void deallocate(void*, unsigned) {}
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
typedef std::true_type propagate_on_container_swap;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#if TEST_STD_VER >= 14
|
#if TEST_STD_VER >= 14
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp();
|
some_comp();
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
~some_comp() noexcept(false);
|
~some_comp() noexcept(false);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp& operator=(const some_comp&);
|
some_comp& operator=(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp(const some_comp&);
|
some_comp(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|||||||
@@ -35,9 +35,7 @@ struct some_comp
|
|||||||
|
|
||||||
some_comp() {}
|
some_comp() {}
|
||||||
some_comp(const some_comp&) {}
|
some_comp(const some_comp&) {}
|
||||||
void deallocate(void*, unsigned) {}
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
|
|
||||||
typedef std::true_type propagate_on_container_swap;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
@@ -47,8 +45,7 @@ struct some_comp2
|
|||||||
|
|
||||||
some_comp2() {}
|
some_comp2() {}
|
||||||
some_comp2(const some_comp2&) {}
|
some_comp2(const some_comp2&) {}
|
||||||
void deallocate(void*, unsigned) {}
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
typedef std::true_type propagate_on_container_swap;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#if TEST_STD_VER >= 14
|
#if TEST_STD_VER >= 14
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ struct some_comp
|
|||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp();
|
some_comp();
|
||||||
some_comp(const some_comp&);
|
some_comp(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
~some_comp() noexcept(false);
|
~some_comp() noexcept(false);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp& operator=(const some_comp&);
|
some_comp& operator=(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp(const some_comp&);
|
some_comp(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ struct some_comp
|
|||||||
|
|
||||||
some_comp() {}
|
some_comp() {}
|
||||||
some_comp(const some_comp&) {}
|
some_comp(const some_comp&) {}
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
@@ -48,8 +49,7 @@ struct some_comp2
|
|||||||
|
|
||||||
some_comp2() {}
|
some_comp2() {}
|
||||||
some_comp2(const some_comp2&) {}
|
some_comp2(const some_comp2&) {}
|
||||||
void deallocate(void*, unsigned) {}
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
typedef std::true_type propagate_on_container_swap;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#if TEST_STD_VER >= 14
|
#if TEST_STD_VER >= 14
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ struct some_comp
|
|||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp();
|
some_comp();
|
||||||
some_comp(const some_comp&);
|
some_comp(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
~some_comp() noexcept(false);
|
~some_comp() noexcept(false);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp& operator=(const some_comp&);
|
some_comp& operator=(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp(const some_comp&);
|
some_comp(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ struct some_comp
|
|||||||
|
|
||||||
some_comp() {}
|
some_comp() {}
|
||||||
some_comp(const some_comp&) {}
|
some_comp(const some_comp&) {}
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
@@ -48,8 +49,7 @@ struct some_comp2
|
|||||||
|
|
||||||
some_comp2() {}
|
some_comp2() {}
|
||||||
some_comp2(const some_comp2&) {}
|
some_comp2(const some_comp2&) {}
|
||||||
void deallocate(void*, unsigned) {}
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
typedef std::true_type propagate_on_container_swap;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#if TEST_STD_VER >= 14
|
#if TEST_STD_VER >= 14
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ struct some_comp
|
|||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp();
|
some_comp();
|
||||||
some_comp(const some_comp&);
|
some_comp(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
~some_comp() noexcept(false);
|
~some_comp() noexcept(false);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp& operator=(const some_comp&);
|
some_comp& operator=(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp(const some_comp&);
|
some_comp(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ struct some_comp
|
|||||||
|
|
||||||
some_comp() {}
|
some_comp() {}
|
||||||
some_comp(const some_comp&) {}
|
some_comp(const some_comp&) {}
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
@@ -48,8 +49,7 @@ struct some_comp2
|
|||||||
|
|
||||||
some_comp2() {}
|
some_comp2() {}
|
||||||
some_comp2(const some_comp2&) {}
|
some_comp2(const some_comp2&) {}
|
||||||
void deallocate(void*, unsigned) {}
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
typedef std::true_type propagate_on_container_swap;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#if TEST_STD_VER >= 14
|
#if TEST_STD_VER >= 14
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ struct some_comp
|
|||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp();
|
some_comp();
|
||||||
some_comp(const some_comp&);
|
some_comp(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
~some_comp() noexcept(false);
|
~some_comp() noexcept(false);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp& operator=(const some_comp&);
|
some_comp& operator=(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ struct some_comp
|
|||||||
{
|
{
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
some_comp(const some_comp&);
|
some_comp(const some_comp&);
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ struct some_comp
|
|||||||
|
|
||||||
some_comp() {}
|
some_comp() {}
|
||||||
some_comp(const some_comp&) {}
|
some_comp(const some_comp&) {}
|
||||||
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
@@ -48,8 +49,7 @@ struct some_comp2
|
|||||||
|
|
||||||
some_comp2() {}
|
some_comp2() {}
|
||||||
some_comp2(const some_comp2&) {}
|
some_comp2(const some_comp2&) {}
|
||||||
void deallocate(void*, unsigned) {}
|
bool operator()(const T&, const T&) const { return false; }
|
||||||
typedef std::true_type propagate_on_container_swap;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#if TEST_STD_VER >= 14
|
#if TEST_STD_VER >= 14
|
||||||
|
|||||||
Reference in New Issue
Block a user