all repos — fluxbox @ 6b943ec69ada6ba8c7b0a8305f048df8ef07f961

custom fork of the fluxbox windowmanager

select 2nd element in pair
fluxgen fluxgen
commit

6b943ec69ada6ba8c7b0a8305f048df8ef07f961

parent

d8b8934089021b1f3003cc77a8f74c7f872d88fc

1 files changed, 18 insertions(+), 0 deletions(-)

jump to
A src/FbTk/Select2nd.hh

@@ -0,0 +1,18 @@

+#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