mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Make simple classes simpler.
This commit is contained in:
parent
5adf0c8ab3
commit
dad0fefc11
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user