Commits

Anonymous committed cbc365e

removed useless trait std::begin

Comments (0)

Files changed (1)

include/basicTypes/traits.hh

     }
 }
 
-namespace std
-{
-    namespace
-    {
-        using namespace stat;
-    }
-
-    // Begin - End
-
-    // Document
-    template <typename W>
-    auto begin(Document<W>& d) -> decltype (std::begin(d.document_))
-    {
-        return std::begin(d.document_);
-    }
-
-    template <typename W>
-    auto begin(const Document<W>& d) -> decltype (std::begin(d.document_))
-    {
-        return std::begin(d.document_);
-    }
-
-    template <typename W>
-    auto end(Document<W>& d) -> decltype (std::end(d.document_))
-    {
-        return std::end(d.document_);
-    }
-
-    template <typename W>
-    auto end(const Document<W>& d) -> decltype (std::end(d.document_))
-    {
-        return std::end(d.document_);
-    }
-
-    // BagOfWords
-    template <typename W>
-    auto begin(BagOfWords<W>& d) -> decltype (std::begin(d.document_))
-    {
-        return std::begin(d.document_);
-    }
-
-    template <typename W>
-    auto begin(const BagOfWords<W>& d) -> decltype (std::begin(d.document_))
-    {
-        return std::begin(d.document_);
-    }
-
-    template <typename W>
-    auto end(const BagOfWords<W>& d) -> decltype (std::end(d.document_))
-    {
-        return std::end(d.document_);
-    }
-
-    template <typename W>
-    auto end(BagOfWords<W>& d) -> decltype (std::end(d.document_))
-    {
-        return std::end(d.document_);
-    }
-
-    // Corpus
-    template <typename W>
-    auto begin(Corpus<W>& c) -> decltype (std::begin(c.documents_))
-    {
-        return std::begin(c.documents_);
-    }
-
-    template <typename W>
-    auto begin(const Corpus<W>& c) -> decltype (std::begin(c.documents_))
-    {
-        return std::begin(c.documents_);
-    }
-
-    template <typename W>
-    auto end(Corpus<W>& c) -> decltype (std::end(c.documents_))
-    {
-        return std::end(c.documents_);
-    }
-
-    template <typename W>
-    auto end(const Corpus<W>& c) -> decltype (std::end(c.documents_))
-    {
-        return std::end(c.documents_);
-    }
-
-}
-
 #endif /* STAT_TRAITS_HH_ */