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:
Marshall Clow
2016-06-09 18:34:38 +00:00
parent 94f5dfc59b
commit 4241df3ef4
40 changed files with 48 additions and 28 deletions

View File

@@ -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()

View File

@@ -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

View File

@@ -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()

View File

@@ -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()

View File

@@ -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

View File

@@ -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()

View File

@@ -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

View File

@@ -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()

View File

@@ -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()

View File

@@ -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

View File

@@ -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()

View File

@@ -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

View File

@@ -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()

View File

@@ -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()

View File

@@ -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

View File

@@ -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()

View File

@@ -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

View File

@@ -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()

View File

@@ -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()

View File

@@ -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

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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