17 #ifndef JUBATUS_CORE_CLASSIFIER_CLASSIFIER_UTIL_HPP_
18 #define JUBATUS_CORE_CLASSIFIER_CLASSIFIER_UTIL_HPP_
24 namespace classifier {
28 template<
class T,
class U>
31 const std::string& label1,
32 const std::string& label2,
35 for (
size_t i = 0; i < t.size(); ++i) {
36 if (t[i].first == label1) {
38 }
else if (t[i].first == label2) {
49 #endif // JUBATUS_CORE_CLASSIFIER_CLASSIFIER_UTIL_HPP_
static void get_two(const T &t, const std::string &label1, const std::string &label2, U &u1, U &u2)