Make simple classes simpler.

This commit is contained in:
Egor Pugin 2024-11-22 03:49:58 +03:00
parent 5adf0c8ab3
commit dad0fefc11

View File

@ -19,8 +19,7 @@
namespace tesseract { namespace tesseract {
template <typename ITERATOR, typename CLASSNAME> template <typename ITERATOR, typename CLASSNAME>
class X_ITER : public ITERATOR { struct X_ITER : ITERATOR {
public:
X_ITER() = default; X_ITER() = default;
template <typename U> template <typename U>
X_ITER(U *list) : ITERATOR(list) {} X_ITER(U *list) : ITERATOR(list) {}
@ -40,8 +39,7 @@ public:
}; };
template <typename CONTAINER, typename ITERATOR, typename CLASSNAME> template <typename CONTAINER, typename ITERATOR, typename CLASSNAME>
class X_LIST : public CONTAINER { struct X_LIST : CONTAINER {
public:
X_LIST() = default; X_LIST() = default;
X_LIST(const X_LIST &) = delete; X_LIST(const X_LIST &) = delete;
X_LIST &operator=(const X_LIST &) = delete; X_LIST &operator=(const X_LIST &) = delete;