Library of Assembled Shared Sources
Stde_select

Detailed Description

functors to select element of std::pair or stde::triple

typedef std::map<std::string, int> map_type;
map_type a;
a["one"] = 1;
a["two"] = 2;
a["three"] = 3;
std::transform(a.begin(), a.end(),
std::ostream_iterator<map_type::key_type>(std::cout, " "),
stde::select_1st<map_type::value_type>());

Data Structures

struct  lass::stde::select_1st< Pair >
 selects first element of std::pair or stde::triple and applies supplied operator on it More...
 
struct  lass::stde::select_2nd< Pair >
 selects second element of std::pair or stde::triple and applies supplied operator on it More...
 
struct  lass::stde::select_3rd< Triple >
 selects second element of std::pair or stde::triple and applies supplied operator on it More...