1 // Copyright (C) 2005 Davis E. King (davis@dlib.net) 2 // License: Boost Software License See LICENSE.txt for the full license. 3 #ifndef DLIB_STATIC_SEt_ 4 #define DLIB_STATIC_SEt_ 5 6 #include "static_set/static_set_kernel_1.h" 7 #include "static_set/static_set_kernel_c.h" 8 #include "static_set/static_set_compare_1.h" 9 10 #include <functional> 11 12 namespace dlib 13 { 14 15 template < 16 typename T, 17 typename compare = std::less<T> 18 > 19 class static_set 20 { static_set()21 static_set() {} 22 23 24 public: 25 26 //----------- kernels --------------- 27 28 // kernel_1a 29 typedef static_set_kernel_1<T,compare> 30 kernel_1a; 31 typedef static_set_kernel_c<kernel_1a> 32 kernel_1a_c; 33 34 35 //----------- extensions ------------- 36 37 typedef static_set_compare_1<kernel_1a> 38 compare_1a; 39 typedef static_set_compare_1<kernel_1a_c> 40 compare_1a_c; 41 42 43 44 45 }; 46 } 47 48 #endif // DLIB_STATIC_SEt_ 49 50