From 310edf444908b09ea6d00c03baceb7925f3bb7a2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 21 Mar 2024 18:19:04 +0100 Subject: Merging upstream version 1.45.0. Signed-off-by: Daniel Baumann --- .../dlib/static_set/static_set_compare_abstract.h | 93 ---------------------- 1 file changed, 93 deletions(-) delete mode 100644 ml/dlib/dlib/static_set/static_set_compare_abstract.h (limited to 'ml/dlib/dlib/static_set/static_set_compare_abstract.h') diff --git a/ml/dlib/dlib/static_set/static_set_compare_abstract.h b/ml/dlib/dlib/static_set/static_set_compare_abstract.h deleted file mode 100644 index 356354e69..000000000 --- a/ml/dlib/dlib/static_set/static_set_compare_abstract.h +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (C) 2005 Davis E. King (davis@dlib.net) -// License: Boost Software License See LICENSE.txt for the full license. -#undef DLIB_STATIC_SET_COMPARe_ABSTRACT_ -#ifdef DLIB_STATIC_SET_COMPARe_ABSTRACT_ - -#include "static_set_kernel_abstract.h" - -#include "../algs.h" - - -namespace dlib -{ - - template < - typename static_set_base - > - class static_set_compare : public static_set_base - { - - /*! - REQUIREMENTS ON static_set_base - must an implementation of static_set/static_set_kernel_abstract.h - - POINTERS AND REFERENCES TO INTERNAL DATA - operator== and operator< invalidate pointers or references to - data members. - - WHAT THIS EXTENSION DOES FOR static_set - This gives a static_set the ability to compare itself to other - static_sets using the < and == operators. - - The < operator is conceptually weird for sets. It is useful - though because it allows you to make sets of sets since - sets require that their containing type implement operator<. - - Also note that it is the case that for any two sets a and b - if (a rhs.size()) then - - returns false - - else - - returns true if there exists an integer j such that 0 <= j < size() - and for all integers i such that 0 <= i < j where it is true that - (*this)[i] == rhs[i] and (*this)[j] < rhs[j] - - returns false if there is no j that will satisfy the above conditions. - !*/ - - bool operator== ( - const static_set_compare& rhs - ) const; - /*! - ensures - - #at_start() == true - - returns true if *this and rhs contain the same elements. - returns false otherwise. - !*/ - }; - - - template < - typename static_set_base - > - inline void swap ( - static_set_compare& a, - static_set_compare& b - ) { a.swap(b); } - /*! - provides a global swap function - !*/ - -} - -#endif // DLIB_STATIC_SET_COMPARe_ABSTRACT_ - -- cgit v1.2.3