Files
minecraft-pe-0.6.1/src/util/CollectionUtils.h
2026-03-02 22:04:18 +03:00

18 lines
392 B
C++
Executable File

#ifndef COLLECTIONUTILS_H__
#define COLLECTIONUTILS_H__
struct PairKeyFunctor {
template <typename T>
typename T::first_type operator()(T& pair) const {
return pair.first;
}
};
struct PairValueFunctor {
template <typename T>
typename T::second_type operator()(T& pair) const {
return pair.second;
}
};
#endif /*COLLECTIONUTILS_H__*/