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