fluxbox/src/FbTk/Select2nd.hh

19 lines
343 B
C++
Raw Normal View History

2005-05-02 12:03:15 +00:00
#ifndef FBTK_SELECT2ND_HH
#define FBTK_SELECT2ND_HH
#include <functional>
namespace FbTk {
template <class A>
class Select2nd:public std::unary_function<A, typename A::second_type> {
public:
typename A::second_type operator () (const A &arg) const {
return arg.second;
}
};
} // namespace FbTk
#endif // FBTK_SELECT2ND_HH